Forum Moderators: phranque
1. Where in http.conf should I put the following, should it be within my <Directory /> section because when I try, the site gets forbidden, no matter if the rules are met or not?
2. I note from previous postings there is subtle syntax difference to rules when in httpd.conf. Yes, I have read the rewrite_mod docs but cannot get my head around it all yet. Take several read for me ha ha! If someone would just show by example with the text below, that'll get me going.
< cut down example >
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_REFERER} q=guestbook [NC,OR]
RewriteCond %{HTTP_REFERER} q=g%E4stebuch [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?flipdog\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www.iaea.org
RewriteRule!^403.htm$ - [F,L]
Cheers,