Kaioshinsama
Member
Posted 3 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.
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
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