The original issue is click bombing you can read it's details here https://forums.digitalpoint.com/threads/click-bombing-attack-from-germany-continued.2653040/ I had faced this issue & I don't want to lose my Adsense account so want to block Germany. I had list of their IP range http://www.ipdeny.com/ipblocks/data/countries/de.zone IP Range but don't know how can I configure it. if any one can help me in this matter then it will be appreciated. Thanks in Advance
I am not quite sure how to do it, but I have asked a similar question before about China. Here is the answer that I received: If you look at his post: http://www.netbuilders.org/building/how-do-i-reconnect-database-30707-2.html then maybe you can do the same with Germany?
If you are using cpanel just go to Security-IP Deny Manager and there is a vid that shows you how to do it. It's super easy...
lolz as I said in this thread https://forums.digitalpoint.com/threads/click-bombing-attack-from-germany-continued.2653040/ adding one by one more than 6000 IP range in IP Deny Manager from hosting account is not feasible way.
Sorry I didn't see that. Ok well you could try this. Go here http://www.phptutorial.info/iptocountry/the_script.html and download the complete country database (on the top right of page) After its downloaded extract it to your website. It will automatically create a folder called "ip_files" Now put this code at the top of your page's: if ($_SERVER['HTTP_X_FORWARDED_FOR']) $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; else $ip = $_SERVER['REMOTE_ADDR']; $two_letter_country_code=iptocountry($ip); function iptocountry($ip) { $numbers = preg_split( "/./", $ip); include("ip_files/".$numbers[0].".php"); $code=($numbers[0] * 16777216) + ($numbers[1] * 65536) + ($numbers[2] * 256) + ($numbers[3]); foreach($ranges as $key => $value) { if($key<=$code) { if($ranges[$key][0]>=$code) { $country=$ranges[$key][1];break; } } } if ($country=="") { $country="unknown"; } return $country; } PHP: And at the bottom of the pages add this: if ($two_letter_country_code=="[COLOR=#0000ff]US[/COLOR]") die(); PHP: Make sure to back up your site before doing any of this. Hope it helps, it worked in a pinch when I was attacked.
You may block access to your website from specific IP addresses using .htaccess file. You need to create this file in your public_html folder and add these example lines: order allow,deny deny from 127.0.0.1 allow from all These lines will block access for all users using 127.0.0.1 IP address. You can download list of each country IPs from countryipblocks website.
you can also use www.myipblocker.com Select the countries you want to block and copy the script to your site. Easy and works like a charm,,,
You should get a *Invalid Clicks Contact Form*. This allows you to disclose what you believe is going on with your account.
Thanks Diva for ur suggestion but till now on based of other user experience who ever filled that form their account got banned btw I had already blocked whole country now and no more click bombs on my site.. but after 1 month of removing ad when I had put them again my revenue goes down (it's less than half)
You can query this site (http://www.ip2location.com/free/visitor-blocker) by country code and get htaccess format or iptables format. I have a script where you put the country codes in to block and it grabs the IP's for those countries and adds rules using iptables. Better to block unwanted countries from accessing the server and not just the web service when you can. If you want a copy of the script pm me. (It's a modified version of the script found here: http://www.cyberciti.biz/faq/block-entier-country-using-iptables/)
Hi there, I started a small project a couple of months ago. I purchased ip2location database and made a small website to block countries and ip's. It does not have the best layout but It does what it promises. I use it to block countries accessing my proxy sites and so far I have filtered more than half million accesses. The service generates a script to paste into your pages and it does the rest by itself. You can check it out at www.myipblocker.com Any suggestion or recommendation will be very much appreciated!
What level of access do you have to the server? The best way would be to block it at the firewall level. If by any chance you use CSF you can block a country code altogether, use the 2 letter country code "DE" to block Germany.
You can use "iMacros" Firefox and Chrome plugin to automate such tasks. The most easy way would be to block all German IP ranges using IPTables. If you don't know how to do that, you can alternatively just create a file called ".htaccess" in your website's directory and put the following content into it to block Germany: http://pastebin.com/raw.php?i=VrXemv0w
ConfigServerFirewall (CSF) has the ability to set country based blocks. This is a plugin for cPanel and can also be used on Linux servers. It's very accurate too. If you are using CloudFlare you can also use it to block countries.
Just a quick note that our country block would currently only offer a captch with a block (humans could still enter the site passing the challenge page).
For now using .htaccess or iptables which allow you to paste 6000+ IP range would be a feasible idea. However, please note that it will causes huge amounts of overhead for the Apache web server due to the large number of .htaccess rules the server need to process. This affects the performance of your website. Hopefully a full region block would be implemented by CF which would make blocking easier.
Something we're looking at. Similar to putting too many rules in Apache, it could actually potentially cause some performance issues having to check too many different blocks.