Bitcoin Forum
March 06, 2021, 01:49:24 AM *
News: Latest Bitcoin Core release: 0.21.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: IP checking service for faucet owners  (Read 1117 times)
BitBustah
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 534



View Profile
January 15, 2017, 03:17:45 PM
 #1

Back in the day when I owned BitBlabber I used www.IPHub.info as an IP checking service. It's a free service.

It gave me very few false positives and I thought it performed better than NastyHosts. Check it out.

If you use it, be sure to read the sites rules. The owner is a cool guy, he'll answer all your questions.
1614995364
Hero Member
*
Offline Offline

Posts: 1614995364

View Profile Personal Message (Offline)

Ignore
1614995364
Reply with quote  #2

1614995364
Report to moderator
1614995364
Hero Member
*
Offline Offline

Posts: 1614995364

View Profile Personal Message (Offline)

Ignore
1614995364
Reply with quote  #2

1614995364
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1614995364
Hero Member
*
Offline Offline

Posts: 1614995364

View Profile Personal Message (Offline)

Ignore
1614995364
Reply with quote  #2

1614995364
Report to moderator
1614995364
Hero Member
*
Offline Offline

Posts: 1614995364

View Profile Personal Message (Offline)

Ignore
1614995364
Reply with quote  #2

1614995364
Report to moderator
Racey
Legendary
*
Offline Offline

Activity: 1148
Merit: 1000


Soon, I have to go away.


View Profile
January 15, 2017, 09:44:33 PM
 #2

Should be https://iphub.info/  Grin how are you, any new projects yet.

And its gone.
felicita
Legendary
*
Offline Offline

Activity: 1582
Merit: 1031



View Profile
January 15, 2017, 09:49:25 PM
 #3

Back in the day when I owned BitBlabber I used www.IPHub.info as an IP checking service. It's a free service.

It gave me very few false positives and I thought it performed better than NastyHosts. Check it out.

If you use it, be sure to read the sites rules. The owner is a cool guy, he'll answer all your questions.

can you give a  curl example or even php example how to use there api ?
iam not really understand there api and some help.



kind regards
BitBustah
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 534



View Profile
January 16, 2017, 07:11:39 AM
 #4

Should be https://iphub.info/  Grin how are you, any new projects yet.

No I'm done. Thanks for sharing the link, it was late last night.



Back in the day when I owned BitBlabber I used www.IPHub.info as an IP checking service. It's a free service.

It gave me very few false positives and I thought it performed better than NastyHosts. Check it out.

If you use it, be sure to read the sites rules. The owner is a cool guy, he'll answer all your questions.

can you give a  curl example or even php example how to use there api ?
iam not really understand there api and some help.



kind regards

No sorry I can not. You need to find a programmer.
xnd
Sr. Member
****
Offline Offline

Activity: 305
Merit: 250


@DEVRAWL


View Profile
June 11, 2017, 02:00:56 PM
 #5

Here's a post about IPHub.info and an example code to integrate it in your faucet script:

http://coinadia.com/iphub-info-nastyhosts-alternative-block-proxys-vpns/

AdolfinWolf
Legendary
*
Offline Offline

Activity: 1624
Merit: 1324


people run from rain but sit in bathtubs of water


View Profile
June 11, 2017, 05:40:19 PM
Last edit: May 06, 2018, 06:57:24 PM by AdolfinWolf
 #6

Here's a post about IPHub.info and an example code to integrate it in your faucet script:

http://coinadia.com/iphub-info-nastyhosts-alternative-block-proxys-vpns/

Or simply add this if your site is using php, and put it preferably into the index.php. Should work aswell.
Code: (https://docs.iphub.info/documentation/php-integration/)


$homepage = file_get_contents('http://iphub.info/api.php?ip='.$_SERVER['REMOTE_ADDR'].'&showtype=4');
$vpn = json_decode($homepage, true);

if($vpn['proxy'] == '1')
{
 echo "We do not accept vpns/proxies to view our ads and claim from our site. Please contact us on X_X if you believe this was done in error. Thanks. / anything  could be here /";
}

https://proxycheck.io/examples/

I see they went to V2 or something which means you need to edit      
Code:
    http://iphub.info/api.php?ip=                                  
with


Code:
http://legacy.iphub.info/api.php?

felicita
Legendary
*
Offline Offline

Activity: 1582
Merit: 1031



View Profile
June 12, 2017, 07:26:33 PM
 #7

wow really thank you for this help and thank to bitdesire.it
now i implementet also iphub to my faucet script .
hope they have a good list of bad ips Cheesy


kind regards
BitBustah
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 534



View Profile
June 13, 2017, 04:39:48 AM
 #8

hope they have a good list of bad ips Cheesy


They have. Smiley
RektCoins
Member
**
Offline Offline

Activity: 110
Merit: 10

There's always an alternative. Rektcoins is back!


View Profile
June 16, 2017, 08:38:28 AM
 #9

Also, how i can whitelist some IPs?

BTW it's working great.

Back again with Express Crypto! http://rektcoins.pw/ | COMING SOON : FAUCETPAY & FAUCETFLY! | http://rektcoins.pw/ | Official Threat https://bitcointalk.org/index.php?topic=2032849 Wink
Quimby88
Sr. Member
****
Offline Offline

Activity: 484
Merit: 250



View Profile
June 16, 2017, 08:40:34 AM
 #10

The problem is that this script will also block a-ads bots so they are not able to check your code on your website so they will stop paying you.
mocacinno
Legendary
*
Offline Offline

Activity: 2240
Merit: 2949


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
June 16, 2017, 08:43:03 AM
 #11

Also, how i can whitelist some IPs?

BTW it's working great.

Adding to the sollution AdolfinWolf already provided in hist post above

Code:

$whitelist = array('17.17.0.37, '128.17.5.33');
if (!in_array($_SERVER['REMOTE_ADDR'], $whitelist)) {
$homepage = file_get_contents('http://iphub.info/api.php?ip='.$_SERVER['REMOTE_ADDR'].'&showtype=4');
$vpn = json_decode($homepage, true);

if($vpn['proxy'] == '1')
{
 echo "We do not accept vpns/proxies to view our ads and claim from our site. Please contact us on X_X if you believe this was done in error. Thanks. / anything  could be here /";
}
}


tungaqhd
Hero Member
*****
Offline Offline

Activity: 1512
Merit: 508


View Profile
June 16, 2017, 09:14:11 AM
 #12

The problem is that this script will also block a-ads bots so they are not able to check your code on your website so they will stop paying you.
I think we should use the code on claim page only instead of full page, so the bot will find the code or set the url of ads to a blank page without anti proxy.


Also, how i can whitelist some IPs?

BTW it's working great.

Adding to the sollution AdolfinWolf already provided in hist post above

Code:

$whitelist = array('17.17.0.37, '128.17.5.33');
if (!in_array($_SERVER['REMOTE_ADDR'], $whitelist)) {
$homepage = file_get_contents('http://iphub.info/api.php?ip='.$_SERVER['REMOTE_ADDR'].'&showtype=4');
$vpn = json_decode($homepage, true);

if($vpn['proxy'] == '1')
{
 echo "We do not accept vpns/proxies to view our ads and claim from our site. Please contact us on X_X if you believe this was done in error. Thanks. / anything  could be here /";
}
}


Nice, thank you so much Cheesy

Selling Vie Faucet Script: https://shoppy.gg/product/099OPQ9
I am selling at Codester (tungaqhd), Rocketr(faucetscript) too. Other links are fake and full of bugs!
RektCoins
Member
**
Offline Offline

Activity: 110
Merit: 10

There's always an alternative. Rektcoins is back!


View Profile
June 16, 2017, 11:00:32 AM
 #13

Also, how i can whitelist some IPs?

BTW it's working great.

Adding to the sollution AdolfinWolf already provided in hist post above

Code:

$whitelist = array('17.17.0.37, '128.17.5.33');
if (!in_array($_SERVER['REMOTE_ADDR'], $whitelist)) {
$homepage = file_get_contents('http://iphub.info/api.php?ip='.$_SERVER['REMOTE_ADDR'].'&showtype=4');
$vpn = json_decode($homepage, true);

if($vpn['proxy'] == '1')
{
 echo "We do not accept vpns/proxies to view our ads and claim from our site. Please contact us on X_X if you believe this was done in error. Thanks. / anything  could be here /";
}
}



I'm currently using this code

Code:

  <?php
      $ip 
$_SERVER['REMOTE_ADDR'];
      
$handle fopen("blockedips.txt","a");
      
$ch curl_init();
      
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
      
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
      
curl_setopt($chCURLOPT_URL'http://v2.api.iphub.info/ip/'.$ip);
      
curl_setopt($chCURLOPT_HTTPHEADER, array('X-Key: YOUR-UNIQUE-API-KEY'));
      
$result curl_exec($ch);
      
curl_close($ch);
 
      
$obj json_decode($resulttrue);
      if(
$obj['block'] == '1'){
               
fwrite($handle""$ip "\n");
               
fclose($handle);
               
header"Location: blocked.html" ); die;
        }
?>


But i don't know how to whitelist IP's if some legit users get banned  Undecided

Back again with Express Crypto! http://rektcoins.pw/ | COMING SOON : FAUCETPAY & FAUCETFLY! | http://rektcoins.pw/ | Official Threat https://bitcointalk.org/index.php?topic=2032849 Wink
mocacinno
Legendary
*
Offline Offline

Activity: 2240
Merit: 2949


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
June 16, 2017, 11:05:47 AM
 #14


I'm currently using this code

Code:

  <?php
      $ip 
$_SERVER['REMOTE_ADDR'];
      
$handle fopen("blockedips.txt","a");
      
$ch curl_init();
      
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
      
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
      
curl_setopt($chCURLOPT_URL'http://v2.api.iphub.info/ip/'.$ip);
      
curl_setopt($chCURLOPT_HTTPHEADER, array('X-Key: YOUR-UNIQUE-API-KEY'));
      
$result curl_exec($ch);
      
curl_close($ch);
 
      
$obj json_decode($resulttrue);
      if(
$obj['block'] == '1'){
               
fwrite($handle""$ip "\n");
               
fclose($handle);
               
header"Location: blocked.html" ); die;
        }
?>


But i don't know how to whitelist IP's if some legit users get banned  Undecided

At this moment, you open a filehandle, you check iphub.info and if an ip is blocked by iphub.info, you write this ip to your blockedips.txt file.
The only purpose for this action would be to check who couldn't visit your site due to iphub.info's service.

You can just implement my little if-clause around this block:
Code:
$whitelist = array('17.17.0.37, '128.17.5.33');
if (!in_array($_SERVER['REMOTE_ADDR'], $whitelist)) {
//your script
}

you can get the array of whitelisted ip's from a filehandle, hardcoded (like in the example) or from your database... It doesn't really matter. If you put this if-clause around your code, anybody with a whitelisted ip will just bypass your test, even if they are blocked by iphub.info.

tungaqhd
Hero Member
*****
Offline Offline

Activity: 1512
Merit: 508


View Profile
June 16, 2017, 11:07:39 AM
 #15

Also, how i can whitelist some IPs?

BTW it's working great.

Adding to the sollution AdolfinWolf already provided in hist post above

Code:

$whitelist = array('17.17.0.37, '128.17.5.33');
if (!in_array($_SERVER['REMOTE_ADDR'], $whitelist)) {
$homepage = file_get_contents('http://iphub.info/api.php?ip='.$_SERVER['REMOTE_ADDR'].'&showtype=4');
$vpn = json_decode($homepage, true);

if($vpn['proxy'] == '1')
{
 echo "We do not accept vpns/proxies to view our ads and claim from our site. Please contact us on X_X if you believe this was done in error. Thanks. / anything  could be here /";
}
}



I'm currently using this code

Code:

  <?php
      $ip 
$_SERVER['REMOTE_ADDR'];
      
$handle fopen("blockedips.txt","a");
      
$ch curl_init();
      
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
      
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
      
curl_setopt($chCURLOPT_URL'http://v2.api.iphub.info/ip/'.$ip);
      
curl_setopt($chCURLOPT_HTTPHEADER, array('X-Key: YOUR-UNIQUE-API-KEY'));
      
$result curl_exec($ch);
      
curl_close($ch);
 
      
$obj json_decode($resulttrue);
      if(
$obj['block'] == '1'){
               
fwrite($handle""$ip "\n");
               
fclose($handle);
               
header"Location: blocked.html" ); die;
        }
?>


But i don't know how to whitelist IP's if some legit users get banned  Undecided
for example if you have a whitelist ip, then:
Code:
$check = mysqli->query("SELECT ip FROM iplist WHERE ip = '$ip' ");
$checkk = $check->num_rows;
if ($checkk !== 1) { ....... your code here
check the sql syntax bcz i am not good

Selling Vie Faucet Script: https://shoppy.gg/product/099OPQ9
I am selling at Codester (tungaqhd), Rocketr(faucetscript) too. Other links are fake and full of bugs!
BitBustah
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 534



View Profile
June 17, 2017, 04:44:36 AM
 #16

You should not use txt files. In the end, that file will become huge and will slow down your site...
BitcoinzB
Full Member
***
Offline Offline

Activity: 182
Merit: 100


★Bitdesire.it★


View Profile WWW
June 18, 2017, 08:18:50 AM
 #17

wow really thank you for this help and thank to bitdesire.it
now i implementet also iphub to my faucet script .
hope they have a good list of bad ips Cheesy


kind regards
You're welcome!
Glad to see my example code was featured on coinadia too :p

The problem is that this script will also block a-ads bots so they are not able to check your code on your website so they will stop paying you.
That's why you should check for bad IPs/proxies/TOR etc on claim or cashout and not block anyone from accessing your website straight away.
cz3kit
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
June 18, 2017, 09:38:52 AM
 #18

Nice to see this. I actually had been searching for service like that. I will have a look into and see how it works.

Thanks for sharing Smiley

bitcoinblog
Sr. Member
****
Offline Offline

Activity: 469
Merit: 251



View Profile
March 30, 2018, 12:45:07 PM
 #19

Is the owner of Iphub.info still active on this board ?

From what time there database is not updated ?

** You can hire this area **
BitBustah
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 534



View Profile
March 30, 2018, 02:05:26 PM
 #20

Is the owner of Iphub.info still active on this board ?

From what time there database is not updated ?

Not sure if he is active here. Got a mail from him a few weeks ago. He's working hard for his site.
Send him a mail if you have questions, he's a friendly guy.
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!