Hi everyone,
I found this code on a website, it's supposed to protect my website from hacking attempts specially phpBB forums, is it safe to use or is it just a prank? wut does it do anyway?
TY..PHP Code:<?
foreach($_GET as $a) {
if(preg_match("/((http:\/\/|https:\/\/|ftp:\/\/).+)/i",$a)){
die("Hacking attempt");
}
}
foreach($_REQUEST as $a) {
if(preg_match("/((http:\/\/|https:\/\/|ftp:\/\/).+)/i",$a)){
die("Hacking attempt");
}
}
foreach($_COOKIE as $a) {
if(preg_match("/((http:\/\/|https:\/\/|ftp:\/\/).+)/i",$a)){
die("Hacking attempt");
}
}
?>


Reply With Quote
Bookmarks