Forum Moderators: phranque
I am getting way too much traffic, especially from random forums (!) where posters just put up an image from my site. The worst part is when someone replies to that post, the image is posted again (usually on another page!).
It's pretty fun changing the picture, especially on high traffic sites, but it's getting too frequent to be that much fun anymore.
Can you spell out what I need to do (and I am a web - dummy )... i have ftp access to my site.
Thanks in advance!
-LAN
do i just put the following into a notepad and save it as htaccess in my root directory and that's all i need?
thank you!
"Proper ‘403 forbidden’ method
This method is my favorite because it is the easiest on the server and no bandwidth is used at all. Once again, there are several methods to just return ‘nothing’ but generating a 403 error for the hotlinker is perhaps the best. It will not cause any errors or confusion on your server, and the hotlinker will be left with a broken image link.
RewriteEngine on
RewriteCond %{http_referer}!^$
RewriteCond %{http_referer}!^http://(www.)?yoursite.com [NC]
rewriterule .(gif¦jpe?g)$ - [NC,F]
Just like before, you must change yoursite.com to match your domain name. You can also adjust the extensions in the last line if you wish. You do not have to worry about creating a replacement image to send though since we are just bouncing back a 403 error message. "