1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[SHARE] A very simple script for testing your current proxy anonymity

Discussion in 'PHP & Perl' started by Gogol, Jan 29, 2013.

  1. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    Hi everyone!

    Here I made a simple script for BHW members for checking the anonymity on-line. Please note that this script may not work properly on your localhost. To use this script save it as a .php file, upload the file to a server ( preferably Linux). To check anonymity simply point your browser to the file. All the Feedbacks / Improvements are appreciated :)

    Thanks for the suggestion zazzc. The script is updated :)
    Code:
    <?php
    /* By G0g0l @ BHW*/
    /* This script  is completely opensource. You can use it 
     * ( and abuse it) freely, but please don't blame 
     * me for any consequences :P */
    echo "<b>Your IP : </b>{$_SERVER['REMOTE_ADDR']}<br><b>Proxy Type :</b> ";
    
    
    if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) || isset($_SERVER['X-REAL-IP'])) {
        die('<font style="color:grey">Transparent Proxy</font>');
    } elseif (isset($_SERVER['HTTP_VIA'])) {
        die('<font style="color:blue">Anonymous Proxy</font>');
    } else if (!isset($_SERVER['HTTP_VIA']) && !isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !isset($_SERVER['HTTP_X_PROXY_ID'])) {
        die('<font style="color:green">Elite Proxy / No Proxy</font>');
    } else {
        die('<font style="color:blue">High Anonymous Proxy</font>');
    }
    ?>
    
     
    • Thanks Thanks x 13
    Last edited: Jan 29, 2013
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    Don't forget:

     
    • Thanks Thanks x 2
  3. mmkevin

    mmkevin Newbie

    Joined:
    Feb 27, 2012
    Messages:
    14
    Likes Received:
    1
    nice :D work
     
    • Thanks Thanks x 1
  4. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    Is there such thing ? :O
    Sorry forgot that I will update the script tonight when I get some time :)
    EDIT: SCRIPT IS UPDATED!
     
    Last edited: Jan 29, 2013
  5. loclhero

    loclhero Supreme Member

    Joined:
    Jun 11, 2007
    Messages:
    1,453
    Likes Received:
    2,413
    Gender:
    Male
    Location:
    Copperhead Road
    Just saw this gem. Awesome. And thanks jazzc as well.
     
    • Thanks Thanks x 2
  6. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    Thank you for taking time :)
     
  7. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,290
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
  8. hipokito

    hipokito Newbie

    Joined:
    Jul 5, 2012
    Messages:
    18
    Likes Received:
    3
    Thank you g0g0l, tried your SCRIPT and it works pretty well. However I can bet there are plenty of other Variables the Webserver can ask to find out if you are using a proxy!

    BTW Can someone suggest cheap High Anonymous Proxies?
     
    • Thanks Thanks x 1
  9. reldon

    reldon Newbie

    Joined:
    Aug 18, 2013
    Messages:
    17
    Likes Received:
    3
    Occupation:
    IMer
    Location:
    World Wide Web
    I have often tried using proxies, but when I check my IP using google (by searching 'My IP address'), it displays my real IP, whereas the websites such as cmyip shows the proxy address. Hiding real IP to google is tough these days I guess.
     
  10. sms2indo

    sms2indo Registered Member

    Joined:
    Jul 16, 2014
    Messages:
    97
    Likes Received:
    12
    Occupation:
    http://sms2indo.com
    Location:
    http://sms2indo.com
    Home Page:
  11. Galleta

    Galleta Regular Member

    Joined:
    Dec 7, 2015
    Messages:
    270
    Likes Received:
    86
  12. veronica712

    veronica712 Registered Member

    Joined:
    Feb 21, 2016
    Messages:
    51
    Likes Received:
    9
    Very helpful thank you so much! I will try it out soon.
     
  13. noobfriendly

    noobfriendly Newbie

    Joined:
    Feb 26, 2016
    Messages:
    29
    Likes Received:
    1
    Any script that can check for dns leaks?
     
  14. abhi007

    abhi007 Jr. VIP Jr. VIP

    Joined:
    Aug 31, 2010
    Messages:
    5,305
    Likes Received:
    3,741
    Location:
    snip.li/TubH
    My thoughts exactly.
     
  15. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    Well guys this script is pretty basic. You are welcome to modify it for anything you like. My original intention was to share knowledge rather than anything. It is upto you to build something upon it. Hope you get the point :)
     
    Last edited: Mar 6, 2016
  16. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    5,911
    Likes Received:
    7,150
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
  17. Homer Simpson72

    Homer Simpson72 Newbie

    Joined:
    Dec 6, 2015
    Messages:
    23
    Likes Received:
    0
    Wow. I only spent a few minutes in this thread and now I have another reference to a skill. Thanks. I'll try to implement these into some of my personal projects.