I was trying to print the superglobal variable $_SERVER['HTTP_X_FORWARDED_FOR']
for testing a proxy blocker for my website. When i open the file, the server returns this error:
Notice: Undefined index: HTTP_X_FORWARDED_FOR in /Applications/XAMPP/xamppfiles/htdocs/test/test.php on line 2
This is what is inside the file:
<?php
echo $_SERVER['HTTP_X_FORWARDED_FOR'];
?>
What's the problem? is that variable not printable? It seems the error that appeard when you do not define a variable.
Thanks in advance.