Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
Mattastic #1
url referer
Hi,
Is there anyway you can use coldfusion to get the full url of a webpage?
#cgi.HTTP_REFERER# works but only if a link is actually clicked pointing to it .
Hope you can help.
Thanks
Mattastic Guest
-
flash and cgi.referer
I'm trying to create a flash anti-leech method, whereby my flash movie calls a ..cfm module that compares the cgi.host and cgi.referer variables. ... -
Help with HTTP.REFERER or something like it
I have a main web site and many sub web sites under the main web site. You don't have to be logged in to access the main web site but you do have to... -
Page referer not getting set
Hi All, I do web design for some small organizations, and one of the sites I have set up takes online conference registrations. Now, most of the... -
Ma Referer length
All, I have a question about the Max Referer length. By default this is 256 I am not fully sure I understand this property. It this a header that... -
detecting referer
Hello, Bit of a newbie question I guess. What is the best way, using php, to detect information about the referrer to a page. Is this... -
jdeline #2
Re: url referer
CGI.HTTP_HOST and CGI.PATH_INFO may give you what you want. Try using this:
<CFSET website = CGI.HTTP_HOST & CGI.PATH_INFO>
jdeline Guest
-
BKBK #3
Re: url referer
Nothing about referer. Just to say I'm jealous about [url]http://www.deline.com[/url]
There.
BKBK Guest
-
Kronin555 #4
Re: url referer
<cfif CGI.HTTPS eq "On">
<cfset currentURL = "https://">
<cfelse>
<cfset currentURL = "http://">
</cfif>
<cfset currentURL = currentURL & CGI.SCRIPT_NAME & CGI.PATH_INFO>
<cfif CGI.QUERY_STRING neq "">
<cfset currentURL = currentURL & "?" & CGI.QUERY_STRING>
</cfif>
<cfoutput>#currentURL#</cfoutput>
Note: this code tested on Netscape Enterprise. Different web servers have
different definitions of CGI.PATH_INFO and CGI.SCRIPT_NAME, mainly IIS.
Here's the official spec definition of the CGI variables:
[url]http://cgi-spec.golux.com/ncsa/env.html[/url]
and another source:
[url]http://search.cpan.org/src/LDS/CGI.pm-3.11/cgi_docs.html#environment[/url]
For this URL:
[url]https://www.mysite.com/dir1/dir2/MyPage.html/foo/bar?Test=Yes[/url]
CGI.SCRIPT_NAME should be:
/dir1/dir2/MyPage.html
CGI.PATH_INFO should be:
/foo/bar
CGI.QUERY_STRING should be:
Test=Yes
Kronin555 Guest



Reply With Quote

