Title: Faucet in a BOX script - BitBustah's Modifications - NH downtime protection Post by: BitBustah on February 16, 2016, 04:53:28 PM Please read before continuing
NH downtime protection Preventing claims by blocking (partial) hostnames will not work when the NastyHosts website is down. Faucets that use NastyHosts as their only IP checking service are also vulnerable for claims made by VPNs/proxies (bots). That's why you need to check if NastyHosts is available before you let a user claim. The instructions below will display a simple message to your faucet users. Instructions 1. Backup the original "index.php" file from your root directory. 2. Open the "index.php" from your root directory in Notepad or any other editor. 3. Search the file for this code: Code: $hostnames = @file_get_contents($security_settings["ip_check_server"].getIP()); 4. Change the code to this: Code: $hostnames = @file_get_contents($security_settings["ip_check_server"].getIP()); 5. Save and upload the new "index.php" file. Notes
Code: [16-Feb-2016 16:35:16 UTC] PHP Notice: IP check could not be reached - IP address: 51.254.*.* in /home/your_site/public_html/index.php on line 1448 Title: Re: Faucet in a BOX script - BitBustah's Modifications - NH downtime protection Post by: Btcoinat on February 17, 2016, 08:20:23 AM thank you for sharing but ineed to demo for this code or more explain the effect of this code because my host not approve to activation NastyHosts in my site .and me use another ip check code to prevent ip or bot or proxy visit
for that my friend if you can make demo or more explain to make applied in my site Title: Re: Faucet in a BOX script - BitBustah's Modifications - NH downtime protection Post by: BitBustah on February 17, 2016, 10:01:09 AM thank you for sharing but ineed to demo for this code or more explain the effect of this code because my host not approve to activation NastyHosts in my site There's very little to show with a demo. If NH is down, the "error_log" in the root dir will be changed/updated. That's it. Making a demo for this is stupid. .and me use another ip check code to prevent ip or bot or proxy visit I don't do mods on custom scripts. You need to contact the person who customized your script and ask him to check what happens if your ip check service fails. Sorry. |