def METHOD_NAME(
    dynamic_settings, user
):
    user.last_posted_on = timezone.now() - timedelta(seconds=10)
    user.update_fields = []
    middleware = FloodProtectionMiddleware(
        mode=PostingEndpoint.START,
        settings=dynamic_settings,
        user=user,
        user_acl=default_acl,
    )
    assert middleware.use_this_middleware()
    middleware.interrupt_posting(None)