Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: restrict access

  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    restrict access

    hi.
    have made a homepage with nvu and works good but want to restrict access to all pages except the main page.

    i want everyone that tries to access a subpage directly to be redirected to the mainpage.

    is there any simple way to achieve that ?
    must be in html or javascript.

    Regards
    Tjabo

  • #2
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    (Client-side) JavaScript is easy to circumvent, you should use a server-side language to do that.

    JavaScript's location object can be used to redirect users to the page of your choice.
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.


  •  

    Posting Permissions

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