Commit f912d780 authored by Anthony.Suerte's avatar Anthony.Suerte

HTTP_REFERER TESTER

parent ed9a4204
<?php
function getServer($param){
return isset($_SERVER[$param]) ? $_SERVER[$param] : "";
}
$connector = getServer("HTTP_REFERER");
if($connector == ""){
echo "This is True<br/>";
$connector = getServer("REMOTE_ADDR");
if($connector == "")
echo "No Chance 1";
}else{
$connector = parse_url($connector);
echo "Parse URL: ".print_r($connector, true)."<br/>";
$connector = gethostbyname($connector["host"]);
}
echo $connector;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment