Is there a way in which I can detect the URL that is calling in my php page, similar to say a GET or POST but would like to get the URL as I would like to restrict the page acce
$_SERVER["HTTP_REFERER"]
is what you are looking for.