I am building an application that requires the values of

$_SERVER['SERVER_ADDR'] and $_SERVER['SERVER_NAME'] etc. to be correct.

I understand users can change these values ... e.g.

PHP Code:
How could I over come this, e.g. is it possible to do something like this
PHP Code:
$_SERVER fetchServerVARS(); 
Or does anyone have any ideas?