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($v, 0, 4)=='http' || substr($v, 0, 3)=='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
|