php hacking script

Discussion in 'PHP' started by fafa7080, Jan 26, 2011.

  1. #1
    Does any body know any website which we can purchase the following code
    i want the script in which i can see from my side who has viewed my website whats his ip address and show me if he/she has used vpn tunnel ,if he/she used vpn connection whats his/her real ip address,and show me the username/ of his isp
    does anybody has this script?
     
    fafa7080, Jan 26, 2011 IP
  2. CPAPubMichael

    CPAPubMichael Peon

    Messages:
    231
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am aware that you can get the real users IP address using .htaccess. Search it on Google.

    Thanks,

    Michael
     
    CPAPubMichael, Jan 26, 2011 IP
  3. fafa7080

    fafa7080 Member

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    thanks for the answer
    can you tell me more,if the real ip address found what to do with finding username of whomever viewing the website?
     
    fafa7080, Jan 26, 2011 IP
  4. CPAPubMichael

    CPAPubMichael Peon

    Messages:
    231
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I believe with the .htaccess trick, it just replaces:

    
    
    <?php
    
      $_SERVER['REMOTE_ADDR'];
    
    ?>
    
    
    PHP:
    When you call it out in the PHP file. The .htaccess with basically strip the wall between the site and the fake IP what they are using.

    Thanks,

    Michael
     
    CPAPubMichael, Jan 26, 2011 IP
  5. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you can try the following for working around the vpn

    $_SERVER['HTTP_X_FORWARDED_HOST'];
    $_SERVER['HTTP_X_FORWARDED_SERVER'];

    "HTTP_X_FORWARDED_FOR" Contains the remote client IP for which the forward was performed.
    "HTTP_X_FORWARDED_HOST" Contains the address of the responsible proxy server.
    "HTTP_X_FORWARDED_SERVER" Contains the FQDN of the responsible proxy server.

    concerning the isp name you would have to reference the whois in some way or purchase an isp database to reference the ip by.

    You can always get the host name but this is not the isp but simply the rdns for the ip.

    $fullhost = gethostbyaddr($ip);
     
    srisen2, Jan 26, 2011 IP
  6. sabato

    sabato Member

    Messages:
    407
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    43
    #6

    you will never be able to identify all vpn. It is not possible.
     
    sabato, Jan 26, 2011 IP
  7. jsimpson

    jsimpson Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You're right. There are some type that you can and can't detect.
     
    jsimpson, Jan 28, 2011 IP
  8. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,120
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
  9. ROOFIS

    ROOFIS Well-Known Member

    Messages:
    1,234
    Likes Received:
    30
    Best Answers:
    5
    Trophy Points:
    120
    #9
    I think the likes of hotspot shield have a 'null' isp reference, maybe others might have similar. As others are saying, try to find a list for vpn ip/isp references and keep a log file of your referrers to track any inconsistencies.




    ROOFIS
     
    ROOFIS, Jan 29, 2011 IP