Boscardin
06-12-2008, 03:44 PM
I've tried so many different combinations and none of them work! I went to Atlab.com (http://altlab.com/htaccess_tutorial.html) and even tried all four variations found at HTMLBasix (http://www.htmlbasix.com/disablehotlinking.shtml), but sadly, they can all be hotlinked. At one point, it was working, but then I noticed a few hits in my latest visitors that told me they weren't working anymore.
The thing is, I don't want to prevent hotlinking for my entire domain; it's only for two subdomains that I want, and maybe a directory or two (but if it's too complicated, then forget it.)
There are the ones that I've tried so far:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?boscardin.org(/.*)?$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,NC]
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?daily.boscardin\.org/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [L]
Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,NC]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,NC]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?boscardin.org(/.*)?$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,NC]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,L]
And none of them have been working! Is it me or do I have to talk to my host now?
(The two subdomains I want to prevent Hotlinking are daily.boscardin and fans.boscardin)
Thanks for any help!
The thing is, I don't want to prevent hotlinking for my entire domain; it's only for two subdomains that I want, and maybe a directory or two (but if it's too complicated, then forget it.)
There are the ones that I've tried so far:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?boscardin.org(/.*)?$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,NC]
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?daily.boscardin\.org/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [L]
Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,NC]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,NC]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?boscardin.org(/.*)?$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,NC]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?daily.boscardin.org/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://img.photobucket.com/albums/v283/dorkalishiz/bandwidth.gif [R,L]
And none of them have been working! Is it me or do I have to talk to my host now?
(The two subdomains I want to prevent Hotlinking are daily.boscardin and fans.boscardin)
Thanks for any help!