Forum Moderators: coopster

Message Too Old, No Replies

Remove Content Based on Referer

         

micahb37

1:39 pm on Aug 22, 2006 (gmt 0)

10+ Year Member



So here is my issue. I have a product that is perfectly legal, but contreversial. So, Google has asked that I remove it from my site or they wont allow me to run AdWords.

Im thinking that I can remove the product only when the referer is Google AdWords, but leave it for everyone else.

I am pretty sure that this isnt cloaking or doing anything too awful, but if it is, please let me know.

Can I remove content based on a URL parameter using PHP?

trillianjedi

1:49 pm on Aug 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am pretty sure that this isnt cloaking

It is cloaking - showing a different form of content based on who is viewing.

You'll need to check very carefully with the AdWords TOS that what you're doing is allowed.

If it is, yes, it's pretty simple. Using PHP you could do something like:-

if ($_GET('show_stuff') == '0') {
dont_show_your_stuff();
}
else
{
show_your_stuff;
}

Then the URL in your AdWords ad would have:-

&show_stuff=0

... tacked onto it.

TJ