Author

Topic: block visitors by country (Read 310 times)

hero member
Activity: 658
Merit: 500
June 13, 2016, 12:56:27 PM
#4
Nope adsense works fine with cloudflare

Ps. If anyone is using cloudflare and wants to ban any country add this code to the header section

Code:

if($_SERVER["HTTP_CF_IPCOUNTRY"] == "countryid" OR $_SERVER["HTTP_CF_IPCOUNTRY"] == "countryid") {

exit(
"Harder to recover from.");

}

?>

for countryid change it to RU for russia
full member
Activity: 210
Merit: 100
June 13, 2016, 12:55:01 PM
#3
I identified that 90% of bots access comes from russia, as I lock the country by .htaccess?

Get cloudflare for free, I will give you a code only 3 lines you have to add in the header section and it will block any country you pick

I will not have problems with google adsense?
hero member
Activity: 658
Merit: 500
June 13, 2016, 12:53:52 PM
#2
I identified that 90% of bots access comes from russia, as I lock the country by .htaccess?

Get cloudflare for free, I will give you a code only 3 lines you have to add in the header section and it will block any country you pick
full member
Activity: 210
Merit: 100
June 13, 2016, 12:47:09 PM
#1
I identified that 90% of bots access comes from russia, as I lock the country by .htaccess?
Jump to: