View Single Post
  #46  
Old 06-07-2008, 10:30 AM
 
mltriebe mltriebe is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 137
 

Default Re: [PATCH] Blocking those pesky hackers

Quote:
Originally Posted by intel352
@imexhouse: thanks for your contribution!

Hi Scott, this should work:

PHP Code:
##
## Added for security purposes!
##
$stop_user false;
parse_str($_SERVER['QUERY_STRING'], $_qs);
if(
$_qs) {
    foreach(
$_qs AS $k=>$v) {
        if(
substr($v04)=='http' || substr($v03)=='ftp') {
            if(!empty(
$active_modules["Stop_List"])) {
                
func_add_ip_to_slist($REMOTE_ADDR'H');
            }
            
$stop_user true;
        }
    }


Where does this code go, in the auth.php file?

Thanks, Mike
__________________
X-Cart 4.3.1
Buy Together Module, AlteredCart
CDSEO Pro
One Page Checkout, AlteredCart
Smart Search, AlteredCart
On Sale, AlteredCart
Reply With Quote