Prevent URL copy and paste

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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. ...
    5. 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...
  3. #2

    Default Re: Prevent URL copy and paste

    Are you using "<cflogin>"?
    BSterner Guest

  4. #3

    Default Re: Prevent URL copy and paste

    No. We are using database authentication.
    CFRAM Guest

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139