Trouble with getting my .htaccess to work
Posted by: enigmaopoeia
Posted on: 2008-04-11 16:47:00
Bandwidth stealing is becoming an issue with my server and I have read up on making a .htaccess file to help prevent the hotlinking. But I am having some trouble getting the the .htaccess file to work. To give some background information: I use WS_FTP Professional to upload my files and I can view my .htaccess in the FTP. I made the .htaccess file in NotePad and it looks as such:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(. \.)bluemoonsea\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(. \.)dcj.bluemoonsea\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(. \.)www.bluemoonsea\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(. \.)www.dcj.bluemoonsea\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(gif|jpg|jpeg|png|bmp|mp3|mid|midi|html)$ http://i74.photobucket.com/albums/i246/dontcryjennifer/hotlink.gif [L]
I change my WS_FTP to ASCII mode, change the CHMOD to the specific properties, and I uploaded the .htaccess to three directories in general. The main one, the "bluemoonsea.com" directory, and the "dcj.bluemoonsea.com" directory. The main directory I want to focus on is my "dcj.bluemoonsea.com" directory because that is where most people are hotlinking from. I have already read up on the DreamHost Wiki and even use Google, and they don't seem to help me any. I check my files using: http://altlab.com/hotlinkchecker.php
And I have also tried using the Goodies > Htaccess/WebDAV in my Web Panel and they don't work at all.
So I hope someone here can figure out why its not working for me and I thank you in advance for reading this.
~ enigmaopoeia