Jump to content
adyshake

Detectare proxy PHP / Javascript

Recommended Posts

Care este cea mai buna metoda pentru a detecta daca un utilizator foloseste proxy atunci cand intra pe un site ? 

 

Stiu ca unele proxy sunt imposibil de detectat, ma intereseaza sa le detectez pe alea care nu il protejeaza 100% pe utilizator.

 

Momentan folosesc acest cod PHP , dar este o metoda veche si unele proxy nu seteaza Headers.

 

Se poate face ceva cu JavaScript ? Sau alte metode PHP ?

 

Am mai vazut o metoda care face reverse si verifica portul , nu este ok , se incarca greu pagina si porturile sunt multe iar rezultatul poate fi fals pozitiv.

 

Nu vreau sa folosesc API sau Servicii oferite cu BlackListuri sau etc...

   $proxy_headers = array(
        'HTTP_VIA',
        'HTTP_X_FORWARDED_FOR',
        'HTTP_FORWARDED_FOR',
        'HTTP_X_FORWARDED',
        'HTTP_FORWARDED',
        'HTTP_CLIENT_IP',
        'HTTP_FORWARDED_FOR_IP',
        'VIA',
        'X_FORWARDED_FOR',
        'FORWARDED_FOR',
        'X_FORWARDED',
        'FORWARDED',
        'CLIENT_IP',
        'FORWARDED_FOR_IP',
        'HTTP_PROXY_CONNECTION'
    );
    foreach($proxy_headers as $x){
        if (isset($_SERVER[$x])) echo("You are using a proxy!");
    }

UPDATE (poate mai are nevoie cineva) : 

 

What is a "WebRTC leaks"?

WebRTC implement STUN (Session Traversal Utilities for Nat), a protocol that allows to discover the public IP address. 

 

Live Demo : https://diafygi.github.io/webrtc-ips/

 

More Info : https://www.privateinternetaccess.com/forum/discussion/8204/how-to-stop-webrtc-local-ip-address-leaks-on-google-chrome-and-mozilla-firefox-while-using-private-i

 

Am intrat cu proxy si mi-a afisat Ip-ul real, functioneaza in Chrome si Firefox.

Cu VPN nu a reusit sa vada ip-ul real.

Pe Android si alte browsere , din ce am citit , nu functioneaza.

 

Pentru a dezactiva WebRTC : 

Mozilla Firefox: Type "about:config” in the address bar. Scroll down to “media.peerconnection.enabled”, double click to set it to false.
Google Chrome: Install Google official extension WebRTC Network Limiter.

 

Thanks to 

Quote

Dr.Mengele

 

Edited by adyshake
Update
Link to comment
Share on other sites

11 hours ago, danyweb09 said:

 

E bullshit. Ar exista o posibilitate folosind applet-uri java dar trebuie sa accepti explicit sa activezi appletul.

Plus că și alea sunt deprecated. Probabil la softurile jocurilor de noroc funcționează, pentru că acolo se execută codul pe sistemul unde e instalat. Dar nu văd la ce ar ajuta să știe mac-ul pentru că se poate schimba foarte ușor. Oricum ce spune el sunt doar mituri ale internetului. 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...