Can I block access from a specific URI? (7 posts)

  1. divrom
    Posted 11 years ago #

    Someone has taken it upon themselves to place an insulting link on their blog that leads to our site.

    Is there any way to block that link, presumably in the .htaccess file?

  2. Marc
    Posted 11 years ago #

    What do you mean by "insulting link," is it a comment or something different.

    A comment can easily be deleted.

  3. Mark Jaquith
    WordPress Lead Dev
    Posted 11 years ago #

    Use something like this:

    SetEnvIfNoCase Referer the-stupid-site.com stupidsite=yes
    deny from env=stupidsite

    See here:

  4. divrom
    Posted 11 years ago #


    It's just some guy who was a comment troll for a bit but has now taken to mocking us on his site.

    Thanks, markjaquith. It works a treat. Oh, how could I use this to re-direct the incoming? At the moment it goes to my apache test page.

  5. divrom
    Posted 11 years ago #

    Don't worry, I sorted that last issue using one of the plug-ins linked from the Codex page you gave.

    It harmlessly re-loads the same site. Pefect.

    Thanks again! :-)

  6. angsuman
    Posted 11 years ago #

    Curious which plugin did you use.

  7. divrom
    Posted 11 years ago #

    This line - Plugins for blocking Referrer Spam can be found here - lead me to:


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.