Something like the following, in your Apache httpd.conf Virtual Host should block access to any CGI script, unless HTTP_REFERER contains you domain name:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !www.yousite.com
RewriteRule .cgi$ - [F]
You might want to make it more selective, and technically you could spoof the HTTP_REFERER.
Main Topics
Browse All Topics





by: cafechrisPosted on 2009-09-17 at 20:24:53ID: 25362754
Basically,
Is there any way to ensure that the service that is calling my cgi script exists on my webserver. Hope this all makes sense. If it doesn't please ask any ?s and I will explain.