Jump to content

[SOLVED] getenv(REMOTE_ADDR)


asmith

Recommended Posts

As far as I know (and according to what I can find on the web), you can trust getenv(REMOTE_ADDR) (or $_SERVER['REMOTE_ADDR']). But you shouldn't trust $_SERVER['X-Forwarded-For'] or $_SERVER['HTTP_USER_AGENT'] since they can be easily faked.

 

But what OOP said can't hurt anyone :)

 

Orio.

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.