Jump to content

header() redirect IP


hokie5449

Recommended Posts

Can't HTTP_REFERER be altered and therefore not very secure?  I need this for security purposes which also rules out appending it to the end of the URL.

Then (and pardon my French) you're screwed. By using a redirect like that you're already giving the client some latitude. If you can't trust them to keep the referrer correct then you probably shouldn't be trusting it to redirect properly either.

 

I think the closest you'll get, without establishing some kind of authentication scheme with the other server, would be what Pikachu said: append the server IP to the redirect URL.

Link to comment
https://forums.phpfreaks.com/topic/220253-header-redirect-ip/#findComment-1141408
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.