[QUOTE=lmabee;645457]
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} anotherbadsite\.com
RewriteRule .* - [F]
Quote:
Originally Posted by lmabee
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite.com/.*$ [NC]
RewriteRule \.(gif|jpg|wmv|avi|mp3|png|mov)$ - [F]
Is the latter going to overwrite the former? Because the coding is pretty much the same thing. SO, it's my understanding that the first bit of code is to make the "bad sites" not be able to access my website, and the second part of the code is to make my site the only own who can access all the media. Is my understanding correct?
IndexIgnore *.gif *.jpg *.wmv *.avi *.mp3 *.png *.mov
Am I correct in saying all my media will not show when someone accesses my directories?
|
2 points scored

1 for each correct answer