• Resolved fizirizi

    (@fizirizi)


    I was just wondering when the blocking happens.

    I created a plugin for ab testing, and it runs as soon as page loads i want to remove bots, so that my test does not run and register them as user. So i need to know does WF block before wp_init or is there a GLOBAL variable like USER_BOT (true or false).

    • This topic was modified 2 years, 1 month ago by fizirizi.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @fizirizi, thanks for your question.

    If the WAF is optimized, blocks occur before WordPress runs and therefore no information is passed on about whether we suspect that user to be a bot or human.

    Regarding the bot/human question in general, it’s becoming ever harder to guarantee a visit is from one or the other although we do try in Live Traffic based on their behavior before a request was made. The intent is now more important to the Wordfence plugin when making a decision on blocking.

    Thanks,
    Peter.

    Thread Starter fizirizi

    (@fizirizi)

    Thanks for the fast reply.

    Just to make sure the following function wont run?

    add_action(‘wp’, ‘some_function’);

    Plugin Support wfpeter

    (@wfpeter)

    add_action() can’t be run based on a Wordfence function that currently believes the user to be bot or human, but you can run the function itself after init() as part of your plugin as others do.

    Peter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does WF Block before WP Init’ is closed to new replies.