- SearchBot Detection Script for Joomla! ----------------------------------------------- Filename: SearchBot_Detect.php Version: 1.0 Release Date: 10/03/06 Developer: David Hunt Copyright: 2006 Byrgius Technologies License: GNU/GPL (http://www.gnu.org/copyleft/gpl.html) Source: http://software.byrgius.com/ - Installation for (Zoom Gallery v2.5) ------------------------------------------------- Some Bots will attempt to Rate the Images in your Gallery. This will prevent the ratings from being accepted. 1) Copy SearchBot_Detect.php to the components/com_events folder 2) Open components/com_zoom/zoom.php 3) Add the following at line 29 // Byrgius Technologies (http://software.byrgius.com) // Search Engine Detect include_once($mosConfig_absolute_path."/components/".$option."/SearchBot_Detect.php"); 4) Add the following at line 105 (before $page switch) // Byrgius Technologies (http://software.byrgius.com) // Search Engine Detect $allowBotPages = Array('view'); $rejectBotVals = Array('vote'); if( _SEARCH_BOT && !in_array( $page, $allowBotPages ) ){ ob_clean(); die(_SEARCH_BOT_NAME.': Robots Not Allowed'); } else if( _SEARCH_BOT ) foreach( $_REQUEST as $k => $v ) if( in_array( $k, $rejectBotVals ) ){ ob_clean(); die(_SEARCH_BOT_NAME.': Robots Not Allowed'); } 5) Save & Close zoom.php ----------------------------------------------------------------------------------------