Page is a not externally linkable
rominosj - 7:52 pm on Oct 31, 2012 (gmt 0)
Hi,
My site uses a cgi based help desk and the form is located at cgi-bin/tickets/helpdesk.cgi
I have checked log files, and spammers are using that page as the entry page while real visitors first visit the home page, and then if they want to contact us, they click on a link that takes them to the helpdesk.cgi page.
So, I am trying to block spammers via htaccess using directives below, but can't get it to work properly:
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_URI} helpdesk.cgi
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/index.php
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule .* http://www.fbi.gov/
Any help is appreciated.