Results 1 to 6 of 6

Thread: Is it possible?

  1. #1

    Thread Starter
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    Put the following on each ASP page which is not to be cached.
    Code:
    <%
    '== DONT ALLOW CACHE ON CLIENT =='
    Response.Buffer = True
    Response.ExpiresAbsolute = Now() - 1
    Response.Expires = 0
    Response.CacheControl = "no-cache"
    %>
    For HTML use the following:
    Code:
    <HTML><HEAD>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    </HEAD><BODY>
    </BODY>
    </HTML>
    Hope this helps
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  2. #2
    Member
    Join Date
    Jan 2001
    Location
    Alberton, Gauteng, South-Africa
    Posts
    48

    Talking Thanks Mate!

    Thanks .. it looked like it may work ... another question if you don't mind!

    Can I stop people from Book-marking a page? i already disabled the rightclick menu and removed the menubar at the top .. but I still fear people will be able to bookmark certain pages using <CTRL> D or what ever you use for it.

    Thanks again
    ;-)
    Jaco
    South-Africa

  3. #3

    Thread Starter
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    Not as far as I know!
    You can't stop someone creating a bookmark manually, and entering a typed URL.

    What do you want to hide? There may be another work around.
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  4. #4
    Member
    Join Date
    Jan 2001
    Location
    Alberton, Gauteng, South-Africa
    Posts
    48

    Unhappy What I want to hide

    Hey there

    I want to stop a userf rom going into a user log-in section with-out going though the propper channels.

    I.e. first have to Log in then from there you can navigate futer into the Database.

    You can go to http://www.newsclip.co.za and have a look at what I did thus far.


    Thanks for the help
    ;-)
    Jaco
    South-Africa

  5. #5

    Thread Starter
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810

    Good hack proof password page!

    I've got a link on a site I wrote that prevents users from going into a secure area with a password protected link.

    The password script cannot be viewed by the user, and is pretty hack proof. Send me a private message with your email address and I will forward you the code.

    However once the use gets in, then they can bookmark the pages from then on.

    If the user navigates to that page from a bookmark, and there is not a session variable with a codeflag (which is set in ASP when the password form is requested), the restricted page is redirected to the ASP password page first.

    Regards
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  6. #6
    Guest
    If your site is all asp (or other server sidescripted) pges then just make a logon screen that puts their username into a session variable (only if their username and password were correct) and use ssi to include a bit of script at the top of all the other pages. The bit of script you include checks for that session variable - if it's not there then it redirects the user to the login page.

Posting Permissions

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



Click Here to Expand Forum to Full Width