opennms
Results 1 to 7 of 7

Thread: A Simple Proxy Anonymity Tester Program

Threaded View

  1. #1
    Join Date
    Aug 2007
    Posts
    122

    A Simple Proxy Anonymity Tester Program

    Putting this simple program on your web site allows you to see some common server environment variables and test the anonymity of a proxy server. If you are anonymous, your IP should not be visible in the listing it generates.

    It is a program originally written in PERL and I rewrote it for PHP.

    Code:
    <?PHP
    
    /*
    
       This simple program displays some common
       server environment variables.  It shows
       what the web host sees when you connect
       to a web site.
    
       It can be useful in helping to determine how
       anonymous a proxy server really is.
    
       Language : PHP 5.2.4
    
       Author   : Jay Tanner - 2007 Sep *4 - Fri
    
    
    */
    
       print Env_Vars();
    
    
       function Env_Vars()
    
    {
    
     $a = "SERVER_SOFTWARE\t\t" . $_SERVER['SERVER_SOFTWARE'] . "\n";
     $b = "SERVER_NAME\t\t"     . $_SERVER['SERVER_NAME'] . "\n";
     $c = "GATEWAY_INTERFACE\t" . $_SERVER['GATEWAY_INTERFACE'] . "\n";
     $d = "SERVER_PROTOCOL\t\t" . $_SERVER['SERVER_PROTOCOL'] . "\n";
     $e = "SERVER_PORT\t\t"     . $_SERVER['SERVER_PORT'] . "\n";
     $f = "HTTP_ACCEPT\t\t"     . $_SERVER['HTTP_ACCEPT'] . "\n";
     $g = "PATH_INFO\t\t"       . $_SERVER['PATH_INFO'] . "\n";
     $h = "PATH_TRANSLATED\t\t" . $_SERVER['PATH_TRANSLATED'] . "\n";
     $i = "REQUEST_METHOD\t\t"  . $_SERVER['REQUEST_METHOD'] . "\n";
     $j = "REMOTE_HOST\t\t"     . $_SERVER['REMOTE_HOST'] . "\n";
     $k = "REMOTE_ADDR\t\t"     . $_SERVER['REMOTE_ADDR'] . "\n";
    
     $out = "Some Common Server Environment Variables\n\n$a$b$c$d$e$f$g$h$i$j$k";
    
     return "<PRE>$out</PRE>";
    
    
     } // End of  Env_Vars()
    
    
    
    ?>


    I connected to a proxy server in China, ran the program on my web host and obtained the following listing:
    Code:
    Some Common Server Environment Variables
    
    SERVER_SOFTWARE     Apache/2.2.6 (Unix) mod_ssl/2.2.6 mod_auth_passthrough/2.* mod_bwlimited/*.4
    SERVER_NAME         neoprogrammics.info
    GATEWAY_INTERFACE   CGI/*.*
    SERVER_PROTOCOL     HTTP/*.0
    SERVER_PORT         80
    HTTP_ACCEPT         application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
    PATH_INFO
    PATH_TRANSLATED
    REQUEST_METHOD      GET
    REMOTE_HOST
    REMOTE_ADDR         222.88.75.24*


    The REMOTE_ADDR = 222.88.75.24* is the proxy server I used in China to test the program and see if the proxy was anonymous.

    Since my IP doesn't show up, it means that I'm anonymous to the web server, since my own IP is not shown - at least in theory.

    So, according to my web host, I posted the kiddie porn on MySpace.com from a computer in China instead of New York State, USA.
    (LOL - Just kidding, folks).

    The idea of a proxy is to surf the Internet leaving any IP except your own on the server logs.

    In fact, an anonymous proxy shouldn't keep general client connection logs or it defeats their purpose!

    Last edited by JayT; 09-14-2007 at 11:47 PM.
    Oh to be free, so blissfully free, of the ravages of intelligence, there is no greater joy! - The Cweationist's Cweed

    All that is necessary for evil to triumph is a good PR firm.
    Very funny, Scotty. Now beam down my clothes!

Similar Threads

  1. Quick PHP Code Tester Program
    By JayT in forum Programming
    Replies: 8
    Last Post: 03-23-2008, 11:03 PM
  2. TOR is a good proxy download program
    By spungywungy in forum Proxies and Firewalls
    Replies: 0
    Last Post: 01-23-2008, 11:31 PM
  3. A good personal proxy program
    By Unregistered in forum Proxies and Firewalls
    Replies: 10
    Last Post: 09-21-2004, 03:36 PM
  4. Replies: 2
    Last Post: 04-20-2002, 04:13 AM
  5. Wanted: Sample C/C++ code for a simple win*8/NT Proxy
    By rehn in forum Proxies and Firewalls
    Replies: 0
    Last Post: 10-08-2001, 02:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts