Author

Topic: How do i implement VPN shielding in Xapo Faucet (Read 282 times)

sr. member
Activity: 266
Merit: 250
Try this code out for a day.

Code:
 //We do not allow proxy here
 
$result file_get_contents("http://v1.nastyhosts.com/".$_SERVER["REMOTE_ADDR"]);
$result json_decode($resulttrue);
if(
$result["suggestion"] == "deny") {
  
$view['main']['result_html'] = '

Sorry Proxy not allowed If not on a proxy ,i still cant help you !!

';
    
$message                     "Proxy Detected";
    goto 
error
  }
 if(@
fsockopen($_SERVER['REMOTE_ADDR'], 80$errstr$errno1))

  
$view['main']['result_html'] = '

Sorry Proxy not allowed If not on a proxy ,i still cant help you !!

';
    
$message                     "Proxy Detected";
    goto 
error
  }
//end We do not allow proxy here
?>
newbie
Activity: 9
Merit: 0
If you want to block VPNs, 3rd party APIs are probably the best for your needs because VPN detection isn't easy to do. Try getipintel and using MSS values ( W I T C H ) to detect VPNs.

getipintel - http://getipintel.net
MSS values - https://medium.com/@ValdikSS/detecting-vpn-and-its-configuration-and-proxy-users-on-the-server-side-1bcc59742413

legendary
Activity: 1946
Merit: 1427
Hey guys its been a while since ive been here and im trying to get my Xapo faucet back running.


does anyone now how to to vpn shielding like faucethub does?
You mean blocking off vpns from accessing the site? Because it is a bit unclear what  VPN shielding means, but i can tell you that that is not what faucethub.io does, they don't block vpns/proxies.

If you do however want to block them, you could use a third party such as iphub.info, or nastyhosts. They have proven to be effective, but not 100%, and sometimes it will generate false positives.
sr. member
Activity: 266
Merit: 250
Hey guys its been a while since ive been here and im trying to get my Xapo faucet back running.


does anyone now how to to vpn shielding like faucethub does?
Jump to: