Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


is it safe to trust serverremote addr


is it safe to trust serverremote addr  using -'php,security,ip-address'

Is it safe to trust $_SERVER['REMOTE_ADDR']? Can it be substituted by changing the header of request or something like that?

Is it safe to write something like that?

if ($_SERVER['REMOTE_ADDR'] == '222.222.222.222') { // my ip address
    $grant_all_admin_rights = true;
}

    

asked Sep 16, 2015 by atulpariharmca
0 votes
10 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...