There are a lot of code example out there that helps users do this. Eg: https://stackoverflow.com/questions/12693729/how-to-display-google-adsense-ads-to-search-engine-traffic-only

But I was looking authoritative links or answers, since there is no answer in Adsense TOS.

3 Answers 3


I don't see any reason that it wouldn't be OK with AdSense.

The only issue you might have is from the organic search side. If you are showing any kind of content only to search users (including ads) that could be considered "cloaking". To ensure that you don't get an organic ranking penalty, you would want to make sure you serve the same page to search engine robots (like Googlebot) that you serve to visitors from search engines.

  • 1
    I concur to some extend. You could be using the language defined by the browser to choose what to show to the user (i.e. French or English?) and that should not be considered cloaking. One way to avoid that connotation is to use a proper canonical so the search engines can see the "ultimate" page (in case of the language, it could be to force the language with ?lang=en at the end of the path.) Jan 19, 2014 at 0:12

If you consider the contributors on the AdSense forums to be authoritative, then they don't seem to find any problems with selecting what visitors to show Google ads to.




Yes, it is safe.

Reason : Nowhere it is mentioned that it is unsafe. Giants like twitter do that. The only risk associated with cloaking is SEO issues, as cloaking is against the Google webmaster Guidelines.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.