• Resolved Anonymous User 14978628

    (@anonymized-14978628)


    Hi Jeff,

    If i want to transfer the blocked ips collected by Blackhole to my htaccess, could you tell me is it best to enter those ips before the Begin WordPress code in the htaccess?

    Basically, i’m wondering if doing so would block those ips before WordPress is actually loaded, or doesn’t it work this way and entering the ips to block after the WordPress code would have the same effect?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Yes that is correct, in general controlling traffic at the server level (via config or .htaccess) is better for performance. As for the location of the rules in .htaccess, it’s best to include them before any WordPress-related directives.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    As for the location of the rules in .htaccess, it’s best to include them before any WordPress-related directives

    Is that a general rule for anything i put in the htaccess, or would that only apply to things such as ip blocking? Also, just to confirm, you’re saying that putting stuff in before the wordpress-related directives will cause it to take effect before wordpress is loaded?

    Plugin Author Jeff Starr

    (@specialk)

    It is the case for this particular question, but not in general because it depends on the directives used for blocking, as well as any other directives in the file. So in this specific case, I recommend placing whichever blocking rules before any WordPress rules.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Thanks Jeff 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘IP Blocking’ is closed to new replies.