Welcome to CGI City - One of the biggest WWW Resources for CGI and Perl materials
Tips and Tutorials
How do I prevent other sites from running my scripts to process their information?

The following Perl source code will allow you to specify the IP/domains you wish to allow usage of your script. If your script is executed form an IP/domain that is not contained in your list, then an error message will be outputted.

You may cut and paste the following code:

The above code is useful for scripts that can easily be called from another server (such as form-to-mail processors, redirection scripts, etc.). With this, you can prevent unauthorized use of your script and thus preventing unnecessary load to your web server.

-oOo-

Back to Tips and Tutorials


Search For:
Quick jump to
Home | About Us | Contact Us | Link To Us | Search
Tips & Tutorials | References | Books | Add A Resource
Custom Programming Services | Advertise
Disclaimer | Privacy Policy

Copyright © 1998-2099    CGI City    All Rights Reserved
All original materials contained herein including text, images, and original scripts written by CGI City, are copyrighted by CGI City. All other scripts and materials are copyrighted by their respective authors/owners.