Forum Moderators: phranque
If I can block any URI that contains "coppa_pass=1", an adult verification system that my board does not use, then I can greatly reduce the spam to my forum.
The entire request is:
[#*$!#*$!.org...]
Below is my feeble attempt at blocking "coppa", but it doesn't seem to work.
RewriteCond %{REQUEST_URI} ^/*coppa [NC]
RewriteRule .* - [R=301,L]
Any advice is greatly appriciated!
Assuming your code goes into the /cgi-bin/.htaccess file, you could use:
RewriteCond %{QUERY_STRING} coppa [NC]
RewriteRule ^ib3/ikonboard\.cgi$ - [F]
Jim
You are correct, my .htaccess is in the cgi-bin and I am on a shared host server.
Are you saying it is not possable to do what I want on a shared server? Thanks all!
P.S. rewrites are ON
This code also works, returning a 403 error:
RewriteCond %{QUERY_STRING} coppa [NC]
RewriteRule .* - [F]
Clearly I need to read up on QUERY_STRING, I've never uses that before. I assummed that anything in the page address is URI.
Thank you all for help.