The pages I want to output are login protected. Now the requests come from your remote server. Which host name would I have to tell my php to ignore logins for in order for the script to properly work?
This is what I am currently doing
if ( $_SERVER["REMOTE_ADDR"] == "69.164.218.62")
//code to ignore login
This code works however i wonder if it not future proof...what if you change hosts or ips in the future. I cannot seem to get it working by hostname, I am trying the following:
if ( $_SERVER["REMOTE_HOST"] == "pdfcrowd.com")
//code to ignore login
Unforunately it doesn't bypass the login. I got the value pdfcrowd.com because it is what pdfcrowd.php uses but no luck with getting it to work here. Any ideas?