Ask a Question related to Macromedia ColdFusion, Design and Development.
-
dijana1081 #1
cgi.http_referer problem
I am using this code for some web security :
<cfif NOT len(cgi.http_referer)
OR NOT findnocase(cgi.http_host,cgi.http_referer)>
<h3>Post action aborted!</h3>
<br />
<p>Post from foreign host detected</p>
<cfabort>
</cfif>
The problem that I am having isn't the code it is that one users
cgi.http_referer is always blank even when it shouldn't be. I know that she is
refering from a page from the application but when we dump the variable it's
always blank. What could be the problem. Is it her browser maybe?
dijana1081 Guest
-
http_referer
Does php support this? HTTP_REFERER or simply cgi and ssi only? - Louie -
#10027 [Com]: HTTP_REFERER
ID: 10027 Comment by: paul at bladetechnology dot co dot uk Reported By: brad at youreshop dot com Status: ... -
[PHP] HTTP_REFERER
On Fri, Sep 12, 2003 at 09:11:09AM +0200, Catalin Trifu wrote: : : "Louie Miranda" <louie@axishift.ath.cx> wrote: : > : > Does php support this?... -
$_SERVER['HTTP_REFERER']
"ease" <ease@wanadoo.fr> wrote in message news:bgjk31$40l$1@news-reader4.wanadoo.fr... Do you control pages that embed your php? If yes then you... -
Getting HTTP_REFERER
I am having no end of bad luck getting the refering page returned, the issue may be that I am doing redirects using javascript if a document is not... -
desprato #2
Re: cgi.http_referer problem
It is not reliable to use http referer. Some browsers do not send it. Some
firewalls (i've seen norton do it) block it. Its best to use a session variable
or cookie to see if a user has already been on your site.
desprato Guest
-
RandNotAyn #3
cgi.http_referer problem (blank)
The solution for me was realizing that my referring file was local, on my drive, not from a server. Used this.
<cfoutput>
<cfdump var="#cgi#">
#cgi.HTTP_REFERER#
</cfoutput>RandNotAyn Guest



Reply With Quote

