Post
Topic
Board Micro Earnings
Re: 🌟 [ Protect your Website ] ♥ [ VPN/TOR API ] 🌟 [ Shielded.cf ] 🌟
by
5ub_zer0
on 08/08/2016, 12:14:03 UTC

if you want to test our stuff in action just add the following code the the top of your index.php
Code:
//put this on top of everything in your index.php
$response_array = json_decode(file_get_contents('http://shielded.cf/api/lookup/free.php?ip='.$_SERVER['REMOTE_ADDR']), true);
if($response_array['isProxy'] == 'YES')
die('');

..
..
..
//here goes the rest of your code
echo 'welcome to our site';

beware! this is a really dirty way to work with our vpn check because the server needs some time to check the user.
better create an new file and call it with some ajax. but this is more advanced and not part of this post to explain.
if you are an faucet owner i recommend to use this check only on your claims.
this helps a lot to reduce loading times on the rest of your website and vpn users can still see the website without the opportunity to claim.


feel free to test the site with different proxy´s / vpn´s and let us know if the server is not correctly marked as what it is.
please ignore the tutorial code snippets on the page. they are pointing to nowhere at the moment.

best regards,


moderator notice: please move under starting post for additional informations.




whould be cool if somebody can give a short tutorial for implementing this code into the xapo (faucet-builder) script .. i have tryed it to put it there were i insert my proxy detection (on claim) but it breaks my site . so i have no clue were put it in  ..