Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Redirecting spammers to an external page


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.


Thread source:: http://www.webmasterworld.com/apache/4514330.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com