Useful little function that can stop email crawlers/wget/etc.
By : Matt
<?php
//UA BLOCK //By: Christopher Lover - webmaster@icehousedesigns.com //http://www.icehousedesigns.com //This script is freeware. I accept no responsibility for damage it may cause (which should be none). //This script can be freely modified, as long as this header is included. //Include at the TOP of your HTML documents
//List user-agents below you wish to ban in correct format
<p>We're sorry. The software you are using to access our website is not allowed. Some examples of this are e-mail harvesting programs and programs that will copy websites to your hard drive. If you feel you have gotten this message in error, please send an e-mail addressed to admin. Your I.P. address has been logged Thanks.</p> <BR> -Yourname <BR> </body>
</HTML>"; exit; }
?>
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.