#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Mexico DF Mexico
    Posts
    16
    Rep Power
    0
    Thanx for taking the time to read this post.

    What I want to so is to restrict acces into a page, I was thinkin something as simple as this, having a Database in Mysql with fields user and pw use a kinda command like "where user='$user' and pword='$pword'" if the two fields match send the user to a webpage like admin.html, and the last thing how can I encript or hide the displayed url or page? like www.example.com/ or symbols etc... so a user cant cunsult the page jumping the loggin page?

    Thanx allot, by the way, Im starting at this php and mysql, so please try to be the most explicit Ill apreciate it.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 1999
    Location
    Bombay,Maharastra,India
    Posts
    8
    Rep Power
    0
    If you're using Apache, then you can restrict
    access to a directory using htaccess. Look up
    the docs on www.apache.org for details.

    If you want to ``restrict access to a particular page'', then you should be _printing_ out the page via CGI/PHP/etc when the person is authenticated.

    If you want to store the username/passwd in
    MySQL db, then look up mysql_auth module at modules.apache.org.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Mexico DF Mexico
    Posts
    16
    Rep Power
    0
    Thanx chyrag:

    But its too complicated for me the way that you toldme I dont wanna make a security loggin for the CIA Im using php and mysql and I wass loking for something as simple as if user and pw in the db match send to the desired url if not well, display the error msg.

    thanx anyway by the way I dont have the htaccess in my machine and im running apache in win98

Similar Threads

  1. user authentication and real player files
    By kyawkyaw in forum PHP Development
    Replies: 0
    Last Post: February 12th, 2004, 10:32 PM
  2. redirect to another page
    By ivan447 in forum PHP Development
    Replies: 2
    Last Post: February 12th, 2004, 10:44 AM
  3. MSWord password ASP Authentication
    By web_sausage in forum Web Design Help
    Replies: 0
    Last Post: February 7th, 2004, 04:53 PM
  4. Authentication System
    By ThundaCat in forum PHP Development
    Replies: 5
    Last Post: January 31st, 2004, 01:32 PM
  5. Is this login page going to work?
    By Axsuul in forum PHP Development
    Replies: 9
    Last Post: January 31st, 2004, 08:32 AM

IMN logo majestic logo threadwatch logo seochat tools logo