Quote:
Originally Posted by smacklan
to block external links from another website? Perhaps through .htaccess? Not talking about hotlinking, I just want to block links back to me from this particular warez site that has my ripped stuff and I can't get them shut down. Trying to get a little payback 
|
Yes, and .htaccess fille will protect your entire site and you can also send anyone that clicks on link from a website you list bouncing to wherever you want to send them. I've sent links from particular nasty web sites and forums usually to sites running malicious scripts (when someone clicks on a link on your listed sites, if the site they got forwarded to hits them with a few malicious scripts...they usually blame the person that posted the link, and I've seen some hillarious fights break out among trolls because of it.

)
Here is the code to create an .htaccess file.
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.url_of_bad_site.com
RewriteRule /* http://www.wherever_you_want_to_send_them_to.html [R,L]
RewriteCond %{HTTP_REFERER} ^http://www.2nd_url_of__different_bad_site.com
RewriteRule /* http://www.some_place_different_you_want_to_send_these_to.php [R,L]
You can add as many sites as you like and you can send their users wherever your little heart desires.
More info here.
http://www.javascriptkit.com/howto/htaccess14.shtml