Is there a way in php to disallow a link within a email message and only allow it on the affiliate's website? Or when someone clicks the email link, they get nothing?
Is there a way in php to disallow a link within a email message
If you have access to the source code of the emails you could check them for URLs and allow only certain ones. This would be the case e.g. if the email is entered via a html form on your website. You could parse the text before actually sending it.
If, however, your affiliate partners use their own smtp server and the email never goes through any smtp server you have controll over there is nothing you can do.
Or when someone clicks the email link, they get nothing?
If you controll the server the link points to, then you could do that.
Hope this helps.
Andreas
Be aware also of encoded ones.. ;)
I.ex.
[1075917724...]
is the same as:
[webmasterworld.com...]
cminblues
In msg#5 you wrote:
Affiliates won't get commissions if they don't link to this page or try to link to other pages on my site. This common page uses some php scripting to determine that the referrer is from an affiliate's website address registered at sign-up.
The problem is the step between 2 and 3. Let´s look at what is happening a bit closer. The surfer´s browser request your "common page". In the HTTP header it sends the URL of the referring page. Your script checks for the referrer and finds everything ok. If howvever, the surfer prevents his browser from adding the referrer to the HTTP header, then your script will complain about that even though your affiliate partner is not at fault (She linked to the right page after all).
As you see [i]t is the ordinary surfer going from an affiliate site to your site that blocks her referrer that will be the problem.
I hope that makes things a bit clearer.
Andreas
I think I get some of what you're trying to say.
"If howvever, the surfer prevents his browser from adding the referrer to the HTTP header"
But how would a surfer do this?
Is there some default setting or modification a surfer would use to do this? If this involves the IE or NetScape browser, can I somehow include some rule in the code to adjust for this?
I tried my idea with ssi, and it worked under the "ideal" set up... but I noticed one way a spammer can find a way around it.
Thanks,
Akogo