I'm owner of some web site with dozen of web pages. Pages were made by using PHP. before some time I discovered that some guys by using Joomla CMS and wrapper menu option included starting (login page) there and on this way confused members and other visitors, especially because "window" of wrapper isn't enough big and some information on my page aren't visible. On this way visitors connect these pages with me and put bad feeling about whole my site. I contacted these guys but no answer, then I tried to solve it by using $_SERVER['HTTP_REFERER'] super variable but I didn't get right and working solution for this problem.
thank you...
There is no good nor evil, just decisions and consequences.
Maybe is problem because login page in this form call itself after submit and after successful login call other page (script) and on this way trigger protection routine? I just want to inform users on these web sites that they looks at "wrapped pages" not genuine location, is that possible?$wl=$_SERVER['HTTP_REFERER'];
$duz=strlen($wl);
$sta="my_domain"; //part of my domain name just for check
$pos1 = stripos($wl, $sta);
if($duz>0 and $pos1 === false)
{
echo "<font size='25'>This is not genuine location"."</font><br/>";
die;
}
else
{
echo "OK, original web location"."<br/>";
}
?>
thank you...
There is no good nor evil, just decisions and consequences.