WordPress.org

Ready to get started?Download WordPress

Forums

How can I block incoming links from a certain source (3 posts)

  1. Kaioshinsama
    Member
    Posted 6 years ago #

    Yes, I was wondering if it was possible to block incoming links from a certain source from seeing my website if they try to view it by coming in through the link. I'm having a bit of a harassment problem coming from another blog so I would appreciate it if there were any help on resolving it neat and simple through this manner. Thanks.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Short answer: no.

    Long answer: Yes, you can block incoming people by referrer in an .htaccess file, but it's not guaranteed to work for all those users (some user-agents don't send referrer headers). See http://www.javascriptkit.com/howto/htaccess14.shtml

  3. iridiax
    Member
    Posted 6 years ago #

    You can block those with referrers using your .htaccess file:

    SetEnvIfNoCase Referer thebadsiteurl.com spammer=yes
    Order allow,deny
    allow from all
    deny from env=spammer

Topic Closed

This topic has been closed to new replies.

About this Topic