www.webdeveloper.com
Results 1 to 4 of 4

Thread: how could i do this?

  1. #1
    Join Date
    Jun 2014
    Posts
    2

    how could i do this?

    Is it possible to not let people access the admin page directly? here is my conditions:

    1. I have a login script
    2. not use any mySQL database
    3. username and password are in the script

    i want some quick reply

  2. #2
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    731
    You don't have a db available? How come? That would be the way to handle a SECURE login system. How are you handling the login credentials without a db? Not very securely probably.

    Sure you could put your admin page in a protected folder. Assign a pswd to that folder and only those who know it (theoretically) will be able to access it, but if you already have a login why aren't you using that?

  3. #3
    Join Date
    Dec 2011
    Posts
    163
    Use a hashed password at least so it's somewhat secure, then maybe use XML to store it?

  4. #4
    Join Date
    Mar 2012
    Posts
    1,528
    It is possible to write a login/password system without using a database, if the number of unique logins is small and changes are infrequent. You can do this in PHP with an external text file of logins and password pairs, preferably encrypted, or with them directly stored in an array in the web page.

    However, I'm not sure what you mean by the "admin" page? Are you referring to the ftp access to the site? In which case login and password protection would normally already be set up by the web host. Or perhaps to the admin page of a CMS like WordPress? If so, what you can, or need, to do is dependent on the CMS.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles