Bitcoin Forum
July 09, 2024, 09:13:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: How do i implement VPN shielding in Xapo Faucet  (Read 282 times)
goldkey0070 (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
April 28, 2017, 04:56:51 AM
 #1

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?
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
April 29, 2017, 05:24:05 PM
 #2

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.

chmanmeow
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
April 30, 2017, 02:41:29 AM
 #3

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

goldkey0070 (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
April 30, 2017, 07:07:45 AM
Last edit: April 30, 2017, 07:22:35 AM by goldkey0070
 #4

Try this code out for a day.

Code:
<?php
 
//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'] = '<div class="row text-center"><div class="col-sm-6 col-md-offset-3 bg-danger"><p>Sorry Proxy not allowed If not on a proxy ,i still cant help you !!</p></div></div>';
    
$message                     "Proxy Detected";
    goto 
error
  }
 if(@
fsockopen($_SERVER['REMOTE_ADDR'], 80$errstr$errno1))

  
$view['main']['result_html'] = '<div class="row text-center"><div class="col-sm-6 col-md-offset-3 bg-danger"><p>Sorry Proxy not allowed If not on a proxy ,i still cant help you !!</p></div></div>';
    
$message                     "Proxy Detected";
    goto 
error
  }
//end We do not allow proxy here
?>

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!