Protect $_SERVERS variable problem

Hi,

I want get some unique value of server that running my PHP script.

Some unique values:


array (
  'HTTP_HOST' => 'domain-name.com',
  'SERVER_SIGNATURE' => '<address>Apache/2 Server at domain-name.com Port 80</address> 
',
  'SERVER_SOFTWARE' => 'Apache/2',
  'SERVER_NAME' => 'domain-name.com',
  'SERVER_ADDR' => '123.123.111.123',
  'SERVER_PORT' => '80',
  'DOCUMENT_ROOT' => '/home/mysite/domains/domain-name.com/public_html',
  'SERVER_ADMIN' => 'webmaster@domain-name.com',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
)

But, HACKED myself :frowning:

php_value auto_prepend_file prepend.php

$SERVER['{key}'] = '{value}';

Maybe we can find a way out :frowning:

The phpinfo() command is a very effective way to view that information.

If you’re wanting to back-channel information about someone else’s server that is running your code, then that’s a different story.

Thank you very much.