Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
CFRAM #1
Prevent URL copy and paste
Hi All,
How to prevent a user from accessing the site when he/she copy and paste the
URL address to get into the site. They should only login to get to the site. I
am using session and client management. If they have already logged in and then
copy the url and paste in a new window I should stop them getting inot the
site.
Any Suggestion or Ideas ?
Thanks
CFRAM Guest
-
cannot copy or paste
This is the error message I get whenever I try to copy or paste within Contribute 3.11 in Windows 2000. Any help would be appreciated. " While... -
can't copy and paste
I recently purchased CS3 and did an update of our website, everything worked okay. Now I return to make changes, I copy/paste onto the pages but... -
Copy & Paste
I'm wanting to add one of those "click here to highlight code" boxes to my site (a bit like you get on the JavaScript sites). I realise i will have... -
Cannot Copy and Paste objects
Hi I cannot copy and paste any object in Acrobat Standard or Professional under Jaguar or Panther. I cannot even select with the "select" tool. ... -
Copy/Paste to PSP
For the last couple of years I had used FH9 to draw departmental org charts. I would Ctrl+A to select all, Ctrl+C to copy to clipboard, switch to... -
-
-
BSterner #4
Re: Prevent URL copy and paste
You can use both. The cflogin tag simply forces a certain segment of code to
get executed if the user is not "logged in". You put it in the Application.cfm
file in a directory you want to protect.
<!--- The following code only gets executed if user has not been logged in
using "<cfloginuser>" tag,
or if their cflogin session times out or if you log them out manually using
"<cflogout>". --->
<cflogin idletimeout="1200" applicationtoken="someval">
<cfif not isDefined("FORM.username") or not isDefined("FORM.password")>
<cfinclude template="loginForm.cfm">
<cfabort>
<cfelse>
<!--- Code to authenticate user in db goes here.
You can set a flag to check at end of cflogin code, redirect
using cflocation, or handle it as you like. --->
<cfloginuser name="#FORM.username#" password="#FORM.p#" roles="">
</cfif>
</cflogin>
BSterner Guest



Reply With Quote

