Reply
How to Block particular countries from viewing my adsense ads
Old 03-12-2007, 10:15 PM How to Block particular countries from viewing my adsense ads
Defies a Status

Posts: 1,573
Name: asapcorp
Location: Tech-Tips-Now.com
Trades: 0
I have a constant fear that some of my known people might keep clicking on my site to get me banned.

One of my friend had this problem, when one of his stupid friend clicked on his ads just to fool around and see what happens.

Other day I was searching some thing in google. When I clicked on one of the search result it showed me that, My IP or my country is not allowed to view this website becasue they dont do business in my country.

I also want to do the same and block the whole of my country/area viewing my website, becasue as such I hardly have any visitors from my country and I dont mind loosing some money by blocking my own country. I would rather like the peace of mind rather then that constant fear.

By the way I am doing very good in Adsense and I dont want to loose that due to any stupid friend clicking my ads.

Questions
1. Is there any script which I can use to block some country or some IP range
2. Can it done wth HTACESS?

Any other way?

Thanks in advance
asapcorp is offline
Reply With Quote
View Public Profile Visit asapcorp's homepage!
 
 
When You Register, These Ads Go Away!
Old 03-13-2007, 06:44 PM Re: How to Block particular countries from viewing my adsense ads
chrishirst's Avatar
Super Moderator

Posts: 22,277
Location: Blackpool. UK
Trades: 0
http://www.javascriptkit.com/howto/htaccess5.shtml
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-15-2007, 11:09 PM Re: How to Block particular countries from viewing my adsense ads
charlesgan's Avatar
hosting-rebate.com

Latest Blog Post:
Hostgator Coupons $93
Posts: 280
Location: hosting-rebate.com
Trades: 0
make it a practice to login adsense account frm your home PC only. and from certain network only. Simply because, its too simple to tracking by IP, and if clicks come from same IP as publisher.... red alarm is ON.
charlesgan is offline
Reply With Quote
View Public Profile Visit charlesgan's homepage!
 
Old 03-23-2007, 09:59 PM Re: How to Block particular countries from viewing my adsense ads
sigmahotels's Avatar
Ultra Talker

Posts: 255
Name: Mark
Trades: 0
Quote:
Originally Posted by chrishirst View Post

surely that would block the entire site, if you detect the ip address with php (or whatever language you are using) you wrap that code around the adsence code and tell it not to display for certain IP's, something like this

<?PHP

$ipaddress = $_SERVER["REMOTE_ADDR"];

Echo "Your IP is $ipaddress!";

?>
__________________
SigmaHotels
We search for you
Dubai Hotels
sigmahotels is offline
Reply With Quote
View Public Profile Visit sigmahotels's homepage!
 
Reply     « Reply to How to Block particular countries from viewing my adsense ads
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13210 seconds with 13 queries