Guest User

Untitled

a guest
May 9th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment