Forum Moderators: phranque
Scenario: I have a trap implemented and hotlinking countermeasures.
<----------The start .htaccess page--------------->
# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
SetEnvIfNoCase User-Agent EmailSiphon AC_FORBIDDEN
<-----shorten for brevity---->
SetEnvIf Request_URI "^(/403.*\.html¦/robots\.txt¦/403\.html)$" allowsome
<Files *>
order deny,allow
deny from env=getout
allow from env=allowsome
</Files>
RedirectMatch my_bobby_trap_file\.html [mydomain.com...]
<Limit GET POST>
order deny,allow
deny from env=AC_FORBIDDEN
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
RewriteEngine On
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain.com [NC]
RewriteRule \.(gif¦jpe?g)$ /thief.$1 [F,L]
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^Ants [NC,OR]
<---------shorten for brevity---------->
<----------The end.htaccess page--------------->
I'm not an expert, just learned a great deal from here. I just need help on access/directive priorities.
Thanks in advance