Here I have a final solution for signup abuse. This is as good as it gets, and I've personally been in talks with the CTO / staff over at IPQualityScore, and they back bittorrent 100% in terms of privacy.
I have requested my API data remain in their EU datacenter for security (instead of US), as advised in general regards to what we all do.
So this API will require you to signup, its extremely easy. You get 5000 free API checks per month, then it resets and goes month to month like that (you won't spend a cent).
I have tested NordVPN (70% of my country list) including other features on my VPN.. and I can't get onto account-signup.php for the LIFE of me (thats great news!). So it works perfectly.
Read more into this service. Just know, its Free with those 5000 credits automatically added for every user. I doubt i will even exceed that in a month. It filters Google crawlers too.
First, [url='https://www.ipqualityscore.com/create-account']Create a Account[/url] then in your account copy your API key and insert into ipqualityscore.php
Then open account-signup.php and find
Add under
Find
Add under
Lastly, create /backend/ipqualityscore.php with
Using Cloudflare? Replace REMOTE_ADDR with HTTP_CF_CONNECTING_IP
This is just default in the code above
You can do whatever you want in place of that line, a JS alert, a text, redirect, etc etc (they can disable Javascript, use header instead). I just send them back to my homepage with a message to turn it off for registration.
That's it. Test to your hearts desire. No more signup abuse, and remain protected in the EU if desired, just replace https://www.ipqualityscore.com - with - https://eu.ipqualityscore.com
Just be creative, for example I added a button that allows a "last chance" account reset upon review of their ratio and activity.
[ATTACH type="full" width="744px" alt="IPDeniedResetRequest.png"]5684[/ATTACH]
[ATTACH type="full" alt="IPInstanceLogged.png"]5686[/ATTACH]
I have requested my API data remain in their EU datacenter for security (instead of US), as advised in general regards to what we all do.
So this API will require you to signup, its extremely easy. You get 5000 free API checks per month, then it resets and goes month to month like that (you won't spend a cent).
I have tested NordVPN (70% of my country list) including other features on my VPN.. and I can't get onto account-signup.php for the LIFE of me (thats great news!). So it works perfectly.
Read more into this service. Just know, its Free with those 5000 credits automatically added for every user. I doubt i will even exceed that in a month. It filters Google crawlers too.
First, [url='https://www.ipqualityscore.com/create-account']Create a Account[/url] then in your account copy your API key and insert into ipqualityscore.php
Then open account-signup.php and find
require_once ("backend/functions.php");Add under
require_once ("backend/ipqualityscore.php");Find
// Check if username is already in use
$a = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from users where username='$wantusername'")));
if ($a[0] != 0) $message = sprintf(T_("USERNAME_INUSE_S") , $wantusername);
Add under
// Check if IP is already in use - August 4, 2020
$checkip = getip();
$a = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from users where ip='$checkip'")));
$ipdenied = "This IP address is already registered.<br><br>We only allow 1 account per device/computer to prevent tracker abuse.";
if ($a[0] != 0) $message = sprintf($ipdenied, $checkip);
write_log("New user $wantusername with IP <b>$checkip</b> was denied due to IP abuse."); // Log the event
Lastly, create /backend/ipqualityscore.php with
Using Cloudflare? Replace REMOTE_ADDR with HTTP_CF_CONNECTING_IP
<?
$key = 'YOUR_API_KEY';
$ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_CLIENT_IP'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$user_language = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
$strictness = 1;
$allow_public_access_points = 'true';
$lighter_penalties = 'false';
$parameters = array(
'user_agent' => $user_agent,
'user_language' => $user_language,
'strictness' => $strictness,
'allow_public_access_points' => $allow_public_access_points,
'lighter_penalties' => $lighter_penalties
);
$formatted_parameters = http_build_query($parameters);
$url = sprintf('https://www.ipqualityscore.com/api/json/ip/%s/%s?%s', $key, $ip, $formatted_parameters);
$timeout = 5;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout);
$json = curl_exec($curl);
curl_close($curl);
$result = json_decode($json, true);
if (isset($result['success']) && $result['success'] === true) {
if ($result['proxy'] === true && $result['is_crawler'] === false) {
exit(header("Location: https://WEBSITE.com"));
}
}
?>
This is just default in the code above
exit(header("Location: https://WEBSITE.com"));
You can do whatever you want in place of that line, a JS alert, a text, redirect, etc etc (they can disable Javascript, use header instead). I just send them back to my homepage with a message to turn it off for registration.
That's it. Test to your hearts desire. No more signup abuse, and remain protected in the EU if desired, just replace https://www.ipqualityscore.com - with - https://eu.ipqualityscore.com
Just be creative, for example I added a button that allows a "last chance" account reset upon review of their ratio and activity.
[ATTACH type="full" width="744px" alt="IPDeniedResetRequest.png"]5684[/ATTACH]
[ATTACH type="full" alt="IPInstanceLogged.png"]5686[/ATTACH]