Hi!
I'd like to show the ads on my page only to visitors coming from search engines. I'm looking for a php script that can do the trick - if lucky and I'll find it, I'll integrate it in my page.
If you know of such thing or how to do it, please post it here, I'll highly apreciate it.
Thank you!
Re: Show content only to visitors from search engines
What version of google are you using e.g. google.fr / es / co.uk ect if not .co.uk or com you will need to edit it, also some browsers don't send the refer header, try wit a different one.
Is your site in google? because it doesn't work by just going to google and typing the url in the address bar.
//you can add more URLs to not show ads, for example you want to block Google and Yahoo images traffic but show to any other Google and Yahoo traffic in
var se = newArray('images.google.','images.yahoo.');
//you can add more search engines below, just follow the same format!
var se2 = newArray('.google.','.yahoo.','.bing.','.ask.','.msn.');
Re: Show content only to visitors from search engines
You may want to redirect people coming from like www.google.com to another page that has the ads using htaccess... just a thought.. maybe a bit painful to implement
You may want to redirect people coming from like www.google.com to another page that has the ads using htaccess... just a thought.. maybe a bit painful to implement
Can do, but I want the same page for everyone, only to hide ads from time to time (or show to some visitors only). Thanks for the suggestion.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.