Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - HTTP Referrer header

 
Thread Tools Search this Thread
Old 07-16-2006, 04:39 PM   #1
Default HTTP Referrer header


Hi all,

Is there a way in HTML to set the value for the Referrer header that
gets sent along with the HTTP request?

I have tried the following

<meta http-equiv="Referrer" content="some URL"/>

However, this didn't work. Any ideas on how this can be achieved.

TIA



SomeGroup
  Reply With Quote
Old 07-16-2006, 05:15 PM   #2
Safalra
 
Posts: n/a
Default Re: HTTP Referrer header

On 16 Jul 2006 08:39:18 -0700, SomeGroup wrote:
> Is there a way in HTML to set the value for the Referrer header that
> gets sent along with the HTTP request?
>
> I have tried the following
>
> <meta http-equiv="Referrer" content="some URL"/>
>
> However, this didn't work. Any ideas on how this can be achieved.


This is a browser feature, and any polite browser will send the correct
header (although various 'security' tools will override this with a fake
referer). If you explain what you are trying to achieve we may be able to
offer assistance (unless you're trying to get round anti-hotlinking code,
in which case you'll likely to be flamed).

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/
  Reply With Quote
Old 07-16-2006, 07:38 PM   #3
Harlan Messinger
 
Posts: n/a
Default Re: HTTP Referrer header

SomeGroup wrote:
> Hi all,
>
> Is there a way in HTML to set the value for the Referrer header that
> gets sent along with the HTTP request?
>
> I have tried the following
>
> <meta http-equiv="Referrer" content="some URL"/>
>
> However, this didn't work. Any ideas on how this can be achieved.


I don't know if it can be changed like this, but if it can, it'll
involve using the correct (though incorrectly spelled) name of the
header: "Referer".
  Reply With Quote
Old 07-18-2006, 07:45 AM   #4
Toby Inkster
 
Posts: n/a
Default Re: HTTP Referrer header

SomeGroup wrote:

> <meta http-equiv="Referrer" content="some URL"/>


Firstly it's "Referer"; it's missing an 'r', but that's part of the spec
unfortunately!

Secondly, the referer is one of the HTTP *request* headers, but http-equiv
is supposed to be equivalent to an HTTP *response* header.

As others have said, please explain what the *problem* is; not your failed
attempt at a solution.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

  Reply With Quote
Old 07-18-2006, 06:59 PM   #5
SomeGroup
 
Posts: n/a
Default Re: HTTP Referrer header

I am trying to write my own login page and deploy on server x for an
website running on a different domain and different server y. I have
tried to populate the same form variables as the server y's login page
does.

However, because of the referer property, the logins are not accepted
from my login page. I am trying this just to see if it works. Please
let me know any ideas on how this can be achieved

Thanks

Toby Inkster wrote:

> SomeGroup wrote:
>
> > <meta http-equiv="Referrer" content="some URL"/>

>
> Firstly it's "Referer"; it's missing an 'r', but that's part of the spec
> unfortunately!
>
> Secondly, the referer is one of the HTTP *request* headers, but http-equiv
> is supposed to be equivalent to an HTTP *response* header.
>
> As others have said, please explain what the *problem* is; not your failed
> attempt at a solution.
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact


  Reply With Quote
Old 07-18-2006, 07:19 PM   #6
Toby Inkster
 
Posts: n/a
Default Re: HTTP Referrer header

SomeGroup wrote:

> I am trying to write my own login page and deploy on server x for an
> website running on a different domain and different server y. I have
> tried to populate the same form variables as the server y's login page
> does.
>
> However, because of the referer property, the logins are not accepted
> from my login page.


The login script on server Y needs adjusting to accept logins from server
X (or better still, from everywhere).

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

  Reply With Quote
Old 11-27-2008, 07:30 AM   #7
varmansk
Junior Member
 
Join Date: Nov 2008
Posts: 3
Default PLZ help me this is an Urgent

Hi could any one please help me regarding similar problem When visitors hit ww.test.com they are automatically redirected to ww.test.com/en and referrer information is lost while redirecting to en could any one provide an alternative redirect method that preserves the HTTP referrer

PLZ help me this is an Urgent
varmansk is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump