dijxtra wrote:
> Is it safe to use HttpResponseRedirect(request.META["HTTP_REFERER"])?
> Can a session be stolen using this coed by spoofing HTTP_REFERER?
Two things stand out to me:
1) HTTP_REFERER is not a required header, so if the browser
doesn't send it, your code won
Is it safe to use HttpResponseRedirect(request.META["HTTP_REFERER"])?
Can a session be stolen using this coed by spoofing HTTP_REFERER?
Thanks in advance,
nick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
Pythoni schreef:
> I would like to use HTTP_REFERER in my Django project to find out from
> where users came to my website. So, my first page is INDEX.HTML that
> uses
> def Index(request) procedure.
> In this def Index(request) I use
> request.META['REMOTE_ADDR']
&g
Pythoni napisał(a):
> I would like to use HTTP_REFERER in my Django project to find out from
> where users came to my website. So, my first page is INDEX.HTML that
> uses
> def Index(request) procedure.
> In this def Index(request) I use
> request.META['REMOTE_ADDR
I would like to use HTTP_REFERER in my Django project to find out from
where users came to my website. So, my first page is INDEX.HTML that
uses
def Index(request) procedure.
In this def Index(request) I use
request.META['REMOTE_ADDR']
but I found out that Referer does not work.
HTTP_R
ringemup schreef:
Julio's hit it on the nose. Not ot mention that Firefox actually has a
hidden setting for that too, and some proxies (including AOL's) also
block referrers. You might be best off explicitly passing the URL of
the current page as a parameter.
I still find it strange that o
Julio's hit it on the nose. Not ot mention that Firefox actually has a
hidden setting for that too, and some proxies (including AOL's) also
block referrers. You might be best off explicitly passing the URL of
the current page as a parameter.
--~--~-~--~~~---~--~---
On 1/4/07, Benedict Verheyen <[EMAIL PROTECTED]> wrote:
Hi,
This is what goes wrong in explorer: the HTTP_REFERER isn't set.
With Firefox, the HTTP_REFERER is set.
Any idea how i can solve this?
I had this problem with a client that was running Norton and
somewhere in
Explorer doesn't work.
In the edit view i have a system where i keep track of the
referrer so i can redirect the user back to the correct page:
page = request.META["HTTP_REFERER"]
history[1] = history[0]
history[0] = page
This is what goes wrong in explorer: the HTTP_RE
Thank you Andreas and Luke for help and explanation
Regards,
L.
is point, you haven't yet set Referrer1, so it will throw an
exception. I've tested it and request.META['HTTP_REFERER'] always does
have the referer as it ought, but if there is no referer header it will
throw a KeyError, so you need to do something like this:
referer = reques
PythonistL wrote:
> Can anybody explain WHY the value from GET part
> (command on line 15 such as
> Refferer1= request.META['HTTP_REFERER']
> ) is not saved to POST?
request.POST contains only the variables POSTed by the user. You'll
have to make sure that the refer
d.")
else:#first GET the LoginForm
Refferer1= request.META['HTTP_REFERER']
print "Refferer1 from GET",Refferer1
manipulator = users.AddManipulator()
errors = new_data = {}
form = formfields.FormWrapper(manipulator, ne
13 matches
Mail list logo