Safety using $_SERVER variables

Posted by DiogoNeves on Stack Overflow See other posts from Stack Overflow or by DiogoNeves
Published on 2010-03-09T01:30:22Z Indexed on 2010/03/09 1:36 UTC
Read the original article Hit count: 370

Filed under:
|
|

Hi all,

I'm working on a system that relies in $_SERVER['REMOTE_ADDR'] to get the user address and check it against a white list of addresses. Is this approach safe? Or is there a way of forcing values in superglobal variables?

Thank you, Diogo

© Stack Overflow or respective owner

Related posts about php

Related posts about safety-critical