function check_hacking($str,$homelocation = "http://www.wbsplanner.com" )
{
if ((strpos($str, ".") > 0 )
or (strpos($str, "/") > 0 )
or (strpos($str, "\\") > 0 ))
{
header('Location: '.$homelocation);
die();
}
}
$host1 = getenv("HTTP_HOST"); // www.wbsplanner.com
$siteurl = 'https://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
// http://www.wbsplanner.com/1.php
check_hacking($_SERVER['REQUEST_URI']);