block referrer information coldfusion

Hi There,

I am currently running a number of ad campaigns that I am buying on behalf of a client. To preserve my Intellectual Property, I do not wish to pass on the referrer to their website.

How can I write a page in coldfusion that will not pass on the referrer id or alternatively how can I make sure that I only pass through the  url of our ad server (which is preferable).?

I may want to host this page on our 'ad server' so that all tracking links will be formatted like

where is where I will host this page

and is where I want to send the visitor.

If I could put the referrer as, that would be preferable.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I could be wrong of course but I don't believe that you can set what another server or browser calculates as referrer when doing a url redirect.

Would it help you at all if you used a lookup id instead of a domain?
where sdf456 is kept in your DB and translates to
or maybe that's what you are already doing ???

you can however set the referrer when doing a cfhttp call - but that's a different story ...


But maybe I misunderstand a couple things
If someone clicks and this takes them to your site and you relocate to - 2 questions
How are you relocating? cflocation or meta refresh or ???
And what does the referrer report as now with whichever method (from the destination point)?
I believe there will be a difference reported with different methods
bradderickAuthor Commented:
Hi dgrafx,

I am open to using cflocation or meta refresh, as long as it doesn't add a lot of time to complete the redirect.

Either way if we can block the referrers or use the ad server as the referrer, I don't mind.  Just need a solution that will do it.


bradderickAuthor Commented:
I'm trying to  use something that works like
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

will look into it later - just going to grab a snack ...

cflocation will appear instantaneous and meta refresh waits for just a tad but figure around 1 second.

am I correct in saying that you don't use anything yet - you're building it now ???
i would say just try one method then the other and see what the referer turns out to be

<cflocation url="" addtoken="0">
on the target domain dump <cfdump var="#cgi.http_referer#">

or try

<meta http-equiv="refresh" content="0; url=" />
and also on the target domain dump <cfdump var="#cgi.http_referer#">

is there a difference?
bradderickAuthor Commented:
Hi dgrafx,

The meta refresh loses the referrer, which is good, however it takes a second or 2 to load.

The cflocation is instant, but still passes the referrer.


Ok - so use meta refresh.
I don't know your setup but can you do a CFabort immediately following the meta refresh so that no other page content is loaded.
Or actually if you know you're going to reload don't have any content other than the meta refresh because most of the delay is due to page content.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Glad it worked out for you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTTP Protocol

From novice to tech pro — start learning today.