Skip to content

Instantly share code, notes, and snippets.

@markwearing
Created May 2, 2012 13:39
Show Gist options
  • Select an option

  • Save markwearing/2576567 to your computer and use it in GitHub Desktop.

Select an option

Save markwearing/2576567 to your computer and use it in GitHub Desktop.
Display a servers configuration only from your ip address.
<?php
if ($_SERVER[‘REMOTE_ADDR’] == “28.57.742.18”):
phpinfo (); die();
endif; ?>
@markwearing
Copy link
Author

What this does is display the configuration settings of the hosting server - but only from the ip address where you are (so if you use this you will need to put your ip address rather than this dummy one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment