Bitcoin Forum
May 30, 2024, 03:49:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to block VPN/proxy traffic from accessing my faucet?  (Read 1104 times)
AdolfinWolf (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
January 19, 2017, 03:45:57 PM
 #1

Anyone got any ideas how to block VPN/proxy traffic from accessing my faucet?


 I have tried to use blocked.com, (https://www.blocked.com/install.php)

but i am unable to install it correctly, it gives an infinite loop error.

Are there any other Apis/sites which offer such services (for free/small fee's) ?

socks435
Legendary
*
Offline Offline

Activity: 2016
Merit: 1030

Privacy is always important


View Profile
January 19, 2017, 11:29:01 PM
 #2

Check this 2 thread maybe it can help you to have idea for blocking ip and proxy.. here https://bitcointalk.org/index.php?topic=1200700.0
Also you can check this old thread https://bitcointalk.org/index.php?topic=1211353.0
That you can prevent bots and vpn users. or tor users..

Solving blocks can't be solved without my rigs.
AdolfinWolf (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
January 20, 2017, 02:22:27 PM
 #3

Check this 2 thread maybe it can help you to have idea for blocking ip and proxy.. here https://bitcointalk.org/index.php?topic=1200700.0
Also you can check this old thread https://bitcointalk.org/index.php?topic=1211353.0
That you can prevent bots and vpn users. or tor users..
YUP, yesterday i coded and installed getipintel, however for some reason i gained a huge amounts of requests, which was over the daily limit, which got me autobanned.
I am now looking for alternatives, but its hard to find some. The .htaccess is far from effective, it doesn't work. Any other suggestions? I saw nastyhosts, but i have no idea how to integrate it into my site. Any tips?

BitBustah
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 534



View Profile
January 21, 2017, 11:41:32 AM
 #4

BitBlabber worked with NastyHosts and IPHub. I really love IPHub.
chmanmeow
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
April 30, 2017, 01:01:08 AM
 #5

You can use http://getipintel.net, it comes highly recommended by some that run faucets. Make sure you put in the correct information for API usage.
krishnapramod
Legendary
*
Offline Offline

Activity: 1470
Merit: 1078


View Profile
April 30, 2017, 03:59:40 AM
 #6

Check this 2 thread maybe it can help you to have idea for blocking ip and proxy.. here https://bitcointalk.org/index.php?topic=1200700.0
Also you can check this old thread https://bitcointalk.org/index.php?topic=1211353.0
That you can prevent bots and vpn users. or tor users..
YUP, yesterday i coded and installed getipintel, however for some reason i gained a huge amounts of requests, which was over the daily limit, which got me autobanned.
I am now looking for alternatives, but its hard to find some. The .htaccess is far from effective, it doesn't work. Any other suggestions? I saw nastyhosts, but i have no idea how to integrate it into my site. Any tips?

There you go, Nastyhosts, place the code on top of header.php or the main faucet page, it will block 95% of proxy IPs

Code:
<?php
$result 
file_get_contents("http://v1.nastyhosts.com/".$_SERVER["REMOTE_ADDR"]);
$result json_decode($resulttrue);
if(
$result["suggestion"] == "deny) {
    die("
Banned");
}
?>

goldkey0070
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
April 30, 2017, 07:00:28 AM
 #7

Check this 2 thread maybe it can help you to have idea for blocking ip and proxy.. here https://bitcointalk.org/index.php?topic=1200700.0
Also you can check this old thread https://bitcointalk.org/index.php?topic=1211353.0
That you can prevent bots and vpn users. or tor users..
YUP, yesterday i coded and installed getipintel, however for some reason i gained a huge amounts of requests, which was over the daily limit, which got me autobanned.
I am now looking for alternatives, but its hard to find some. The .htaccess is far from effective, it doesn't work. Any other suggestions? I saw nastyhosts, but i have no idea how to integrate it into my site. Any tips?

There you go, Nastyhosts, place the code on top of header.php or the main faucet page, it will block 95% of proxy IPs

Code:
<?php
$result 
file_get_contents("http://v1.nastyhosts.com/".$_SERVER["REMOTE_ADDR"]);
$result json_decode($resulttrue);
if(
$result["suggestion"] == "deny) {
    die("
Banned");
}
?>



You left out a quotation also i modified so they can go to the page but not claim... just put above captcha check in index. I havent tried this for bot but im crossing my fingers.
Code:
<?php
$result 
file_get_contents("http://v1.nastyhosts.com/".$_SERVER["REMOTE_ADDR"]);
$result json_decode($resulttrue);
if(
$result["suggestion"] == "deny") {
    die(
"Banned");
}
?>




new code:
Code:
<?php
 $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
  }
?>

BitBustah
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 534



View Profile
April 30, 2017, 07:56:30 AM
 #8

NastyHosts is good, but I prefer IPHub.info

Contact the owner if you have huge amounts of requests: He's a cool guy.
chmanmeow
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
May 01, 2017, 01:15:20 AM
 #9

I've tried NastyHosts and IPHub both, they catch maybe 60% proxy / VPN ips. Getipintel caught all but 1 IP from my testing. W I T C H with MSS values is also accurate for just VPNs only. If you really care to block VPN / proxy traffic maybe test your data first against each service and see which one works best for you.
BitBustah
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 534



View Profile
May 01, 2017, 09:49:12 AM
 #10

Well, I think IPHub catches 85-90% of VPN traffic. It's the job of the faucet owner to check his users/IPs daily. It's no laid-back job.  Roll Eyes
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!