• Resolved densin

    (@densin)


    Hi,

    I have a question might be help me about it. Its about Block Country. I dont know how can i explain what i want. Because i couldnt find online about this topic.

    I want to block my website if visitors coming directly from url. Example if someone enter the “www.example.com” i want to block that way.

    But if visitor coming from Google or Bing, after they seach ” example”. Than they can allowed to my website. Is this possible if i use ur “Block Country” feature. or not?

    Or how is this possible ?

Viewing 1 replies (of 1 total)
  • Hi @densin,

    Block country is something different.

    What you’re describing is blocking everyone who does not have a referrer set.
    There’s no feature in Wordfence to do this, because of the following adverse effects that this can cause:

    1. People who share links won’t be able to access your site
    2. Browsers that do not send a referrer won’t be able to access your site
    3. Automated bots can send a fake referrer to access your site

    If you still want to continue, you can attach the following rules onto your .htaccess:

    RewriteEngine on
    
    RewriteCond %{HTTP_REFERER} ^$
    RewriteRule ^ - [F,L]

    Dave

Viewing 1 replies (of 1 total)
  • The topic ‘Block Country frontend’ is closed to new replies.