There are many ways to reach my site. But I what I'm trying to accomplish is to test if the user comes back from 3 specific sites. If they are linking to my site from theirs, I want to store that info in a variable to dynamically create a URL that links back to that original site.
I was thinking that I could use CGI.http_referr er and somehow test if it contains specific URL info. And if it contains any of those 3 sites then save the content to a variable.
Can I even test of specific text exists as part of CGI.http_referr er? I also think that I need to test for the domain and have it completely ignore any sub directory (so that blabla.com & blabla.com/home/ would both come back as 'true' if I test it for the blabla.com string).
Any suggestions?
I was thinking that I could use CGI.http_referr er and somehow test if it contains specific URL info. And if it contains any of those 3 sites then save the content to a variable.
Can I even test of specific text exists as part of CGI.http_referr er? I also think that I need to test for the domain and have it completely ignore any sub directory (so that blabla.com & blabla.com/home/ would both come back as 'true' if I test it for the blabla.com string).
Any suggestions?
Comment