WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. divrom
    Member
    Posted 9 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
    Member
    Posted 9 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 9 years ago #

    Use something like this:

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

    See here:
    http://codex.wordpress.org/Combating_Comment_Spam/Denying_Access

  4. divrom
    Member
    Posted 9 years ago #

    Marc,

    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
    Member
    Posted 9 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
    Member
    Posted 9 years ago #

    Curious which plugin did you use.

  7. divrom
    Member
    Posted 9 years ago #

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

    http://blog.taragana.com/index.php/archive/word-press-1-5-plugin-referer-bouncer/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.