/    Sign up×
Community /Pin to ProfileBookmark

new window+referer

I have a page that is on https. I have a link on that page that explicitly goes to a page on my server using http, that in turn redirects to another site. The other site that I am redirecting to says they are not able to get the referer (which would be my site’s page over http). Any reason why they can’t get the referer?

Thanks!

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@KDLASep 27.2007 — How are you redirecting? Through meta, or by settings in the htaccess?
Copy linkTweet thisAlerts:
@jrthor2authorSep 27.2007 — we are using java, and we are using jstl to do the redirect, not using meta tags or anything. We just found that if we go straight to our application server, the referer shows up, but if we go to the url (like www.xxx.com), we lose the referer. When you go to the url, you are actually going through apache, which lets you back to the application server. It seems that it gets lost between the application server and the apache server.
Copy linkTweet thisAlerts:
@felgallSep 27.2007 — Have you turned the referrer field off in your browser or firewall? That is often done for privacy reasons and some systems have it set by default.

Many browsers also will not pass a referrer when going from a https: to http: so if your http: page does an immediate redirect then it is possible that it isn't getting one loaded there either. If your http: page is doing a redirect to the other site then maybe it should set the referrer field first before accessing the other site.
Copy linkTweet thisAlerts:
@ray326Sep 28.2007 — Are you using an app server plugin or are you just running Apache as a reverse proxy? In the latter case there are some configuration setting you can make related to the headers it forwards through.
×

Success!

Help @jrthor2 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...