Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Google Forums > Google AdWords & AdSense Forum

GoogleCommunity Sponsor

Reply
 
LinkBack Thread Tools Display Modes
Old 09-10-2007, 08:49 PM   #1 (permalink)
Noogle
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
obiwan
how do I block my ads from being served

on a specific site? Google is serving Adsense ads on a site which locates brothels for people. My site includes childcare services, so this referral isn't exactly sending the right sort of traffic.
obiwan is offline   Reply With Quote
 
Sponsored Links
Old 09-13-2007, 09:24 AM   #2 (permalink)
Senior Googler
 
Join Date: Jun 2005
Location: Bulgaria
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
kulinar
As far as I understand you want to stop showing adsense ads on your site when the referrer is a particular site, am I right? If so, just include this code in your pages:

Code:
if ($_SERVER['HTTP_REFERER']=='Unwanted referrer')
{echo 'The ad code suitable for the traffic';}
else {echo 'adsense code';}
kulinar is offline   Reply With Quote
Old 09-13-2007, 12:29 PM   #3 (permalink)
Master Googler
 
Join Date: Jan 2007
Posts: 952
Thanks: 0
Thanked 1 Time in 1 Post
toinkzzz is on a distinguished road
nice tips there kulinar! i'll try this sometimes...
toinkzzz is offline   Reply With Quote
Old 09-13-2007, 01:54 PM   #4 (permalink)
Senior Googler
 
Join Date: Jan 2007
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
torpengkute is on a distinguished road
hmmmm... removed your adsense code IMHO.
torpengkute is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Google's phenomenal success served as a wake-up call at Redmond - Earthtimes.org News Alerts Google in the News 0 03-01-2007 10:19 AM
Best way to block IP for prevent clicking Ads? espider Google AdWords & AdSense Forum 7 03-14-2006 01:10 AM
New Kid on da Block darrelld Introduce Yourself 10 10-21-2005 01:56 AM
new kid on da block playvibes Introduce Yourself 3 09-11-2005 10:25 AM


All times are GMT -8. The time now is 10:33 AM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community