Website A has a link pointing to Website C

Website B has the same link pointing to Website C

I want to redirect those visitors coming to Website C (my website) who come VIA Website A on to Website D

BUT NOT visitors who come VIA Website B (or any other source really).


Is there a PHP function that would help out here?

Do you have control of the links posted on websites A and B?

If so, then this is pretty easy.

If not, then you might have to use the referrer, which will not always work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.