Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi.http_referer contains mydomain.com?

Status
Not open for further replies.

DeZiner

Programmer
May 17, 2001
815
US
How would I write a statement to check if the refer page is from my site.

<cfset referal = #findNoCase(mydomain.com, cgi-http_referer, &quot;1&quot;)>

Then I need an if statement to check if it did not contain the domain reset cfid, cftoken, and all session variables.

Thanks! DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
You could use ListGetAt():
Code:
<cfif ListGetAt(CGI.http_referer,2,&quot;/&quot;) CONTAINS &quot;domain.com&quot;>
Keep in mind that CGI.http_referer can be faked, meaning a person can customize that header variable to their liking. You could do this with CFHTTP and CFHTTPPARAM, actually.

-Tek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top