IPHub.info – NastyHosts Alternative | Block Proxys and VPNs


IPHub.info provides the same service as NastyHosts.com – it’s a Proxy/VPN detector. Basically, it checks if a certain IP is a residential, a proxy or belongs to a VPN provider.

Using such a service is crucial for a faucet site security. Most attackers use hundreds of IPs to abuse your faucet and make illegal claims from hundred of IP addresses belonging to VPN providers. So, you are most likely to pay the same user, hundreds of times, every few minutes. That’s just wrong and it shouldn’t be possible.

NastyHosts provides a pretty good service but it has its periods of time (days, actually) when the service is unavailable. It also returns a lot of false positives, meaning that many clean, good-faith users will also be blocked among those VPN/Proxy users.

This is when IPHub.info comes into play! It provides an awesome service, it’s uptime is basically 100% for months now and the best part is, it doesn’t confuse good-faith users from abusers.

However, you can use IPHub for free only for a maximum of 50 requests per minute.

If you need more than that, you should get a paid subscription – 10 € / month for up tp 10 requests / second.

How to implement IPHub on your bitcoin faucet site

First thing you need to do is create an account over at IPHub. Create one here.

After the registration is complete, you will receive an email containing your unique API key.

Next, you need to use a code snippet to check each visitor’s IP and see if it’s a normal user or a Proxy/VPN user.

Here’s an example snippet code: (Thanks to bitdesire.it !)

 

First, replace YOUR-UNIQUE-API-KEY with the api key you got in the mail from IPHub.

What does this script actually do?

  • Checks if a visitor’s ip is clean or a Proxy/VPN
  • If detected as Proxy/VPN, it writes the visitor’s IP to a file called blockedips.txt
  • It redirects the abusive visitor to blocked.html page.

You need to create the blocked.html file in your webroot folder and add whatever message you want in it (like “Proxy/VPN access is not allowed” or whatever you want).

The tricky part is to integrate this code into your faucet script. You should probably save the snippet as iphub.php file, upload it to your webroot and add this code at the begging of your index.php file:

 

If you have any questions or need instructions to add this code to a certain faucet script, you can send me an email through the contact section of this page.

Have fun!

Leave a Reply

avatar
Dawes Eve
Guest
Dawes Eve
Awesome! This service is awesome, I paid for a custom plan and the team walked me right through it. So far, the data has been EXTREMELY accurate!! I think only twice I came across a false positive, thanks to their simple contact form the staff resolved my issue within 6 hours. The response times have been usually under a fraction of a second, and the guy’s over there promised me they have some cool failover technology to make sure I never go down 🙂 They even gave me some php code to paste into my site to save me some… Read more »
Bitdesire
Guest

Hey, I’m glad to see the snippet of code I shared some time ago on faucethub has been featured here!
Hope it will help many faucet owners. Also I suggest to integrate that code only on the claim page, since IPhub calls many false positives on bots (especially advertising networks checking for ad code on your pages)

Palwasher
Guest
Palwasher

They introduced a ‘block’ parameter that returns different values dependent on the type of IP, it works perfect here. Must be an error on your side, good luck!

Tung Nguyen
Guest

Hey, i see you save the blocked ip to a file. So why not check ip whether it it’s in the blacklist file first, before check with iphub

aadam0
Guest

Hi,

How to implement IPHub.info script in wordpress site?

Thanks

Facundo
Guest

Hi, I would like to know where I have to paste the code, thank you very much

sumair
Guest
sumair

my ip address is block by nasty hosts on lots of sites since i changed my ISP can u please Unban Me ?

wpDiscuz