Skip to content

Instantly share code, notes, and snippets.

@mhenke
Created November 30, 2013 16:18
Show Gist options
  • Save mhenke/7721016 to your computer and use it in GitHub Desktop.
Save mhenke/7721016 to your computer and use it in GitHub Desktop.
<cfif len(cgi.http_referer) GT 0 AND NOT findnocase(cgi.http_host,cgi.http_referer)>
<cflocation url="AuthorizationRequired.html" addtoken="no">
<cfabort>
</cfif>
<cfif NOT ISDEFINED("form.username") >
<cflocation url="AuthorizationRequired.html" addtoken="no">
<cfabort>
</cfif>
@mhenke
Copy link
Author

mhenke commented Nov 30, 2013

Doesn't need GT 0 and cfaborts. Good using addtoken

@webRat
Copy link

webRat commented Nov 30, 2013

o_O

@gratzc
Copy link

gratzc commented Nov 30, 2013

and isdefined, i love that one too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment