Just need some advice -htaccess-

Just need some advice -htaccess-

Posted by: lmabee
Posted on: 2008-01-10 15:04:00

Experienced Dreamhosters!
I need your help! I'm trying to write out a htaccess file by hand. (the panel one doesn't have enough opitions to make it worth while) Although I think I have the right coding, I would really appreciate your patience and help if there is anything to add to this:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www.)?mysite.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?mysubdomain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?mysubdomain.com(/)?.*$ [NC]
RewriteRule .*.(gif|jpg|jpeg|bmp|avi|mov|wmv|mp3|png|jpeg)$ http://www.mysite.com[R,NC]

deny from 202.46.115
deny from .dizzler.com
deny from .singingfish.com
deny from .video.aol.com
deny from .kamillik.com
deny from .orkut.com

<Files .htaccess>
order allow,deny
deny from all
</Files>

IndexIgnore *

Re: Just need some advice -htaccess-

Posted by: lmabee
Posted on: 2008-01-10 22:53:00

I would really appreciate if someone could kindly reply. I have been needing to get this done for some time and don't want to have to bother the tech support folks at DH.

Re: Just need some advice -htaccess-

Posted by: teambroseph
Posted on: 2008-01-11 14:49:00

Hi! ; ) I have no idea what I'm doing in .htaccess-land, but so far this has been pretty helpful: http://httpd.apache.org/docs/1.3/mod/directives.html

Plus, now your post is at the top again, at least for a while... Maybe someone who knows what they're doing will respond. ; )

Re: Just need some advice -htaccess-

Posted by: lmabee
Posted on: 2008-01-11 21:41:00

Thanks for your help Teambroseph!
I wish you the best of luck on your .htaccess trials as well!

Tags: www mysite comjpeg bmpavi movhttp refererjpg jpegrewriterulegif jpghtaccess filepngwmvrewritecondpatiencemp3