Forum Moderators: coopster
I'd like the script on the second server to check the ip address the request came from for security, so I know it has only originated from my server. I know of $_SERVER['REMOTE_ADDR'] but this seems to display the client address, i.e. calling the page from server 1.
Any ideas?
You could pass a code to the file on the other server to verify the request came from your server, or you could make it check the parent document using JS, etc.
The originating server, aka the IP address you want, won't actually be known to the file on the other server as it never actually interacts with your server, only the user via the iFrame.