Just need some advice -htaccess-


#1

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

IndexIgnore *


As you can see I’m tying to block directory listing, and htaccess viewing. Along with blocking particular sites from accessing my site.

Does all of this look okay? Or is there some tweeking that needs to take place?

Thank you for your help and patience guys, I really appreciate it!

Warmest,
Laura


#2

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.


#3

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. ; )


#4

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