Some server globals are specific to how the software has been set up, so i would check on your server to see what is there that you can use. you could always add a query string to the request for validation
ie:
ajax.php?test=fheryucherigfnrberucvndrrufifm
if($_GET['test'] !='fheryucherigfnrberucvndrrufifm'){
exit('bad');
}
unless someone has access to your php they wont know the string.