Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Determining if public proxies are anonymous
  2. <?php
  3. foreach (getallheaders() as $name => $value) {
  4.     echo "$name: $valuen";
  5. }
  6. ?>
  7.        
  8. <?php
  9. $headers = array();
  10. foreach($_SERVER as $key => $value) {
  11.     if(strpos($key, 'HTTP_') === 0) {
  12.         $headers[str_replace(' ', '-', ucwords(str_replace('_', ' ', strtolower(substr($key, 5)))))] = $value;
  13.         echo $value;
  14.     }
  15. }
  16. ?>