Otherwise, I'd probably do something fancier by maybe having a proper login using a combination of PHP and a database for example. htpasswd file contains the usernames and passwords of allowed users. htpasswd Code: your_username:your_password If you don't know what the value should be, do a phpinfo() and find the DOCUMENT_ROOT value. The AuthUserFile value is always specific to your hosting configuration. The above code protects a directory called protect-me-dir at root level. htpasswd file:ĪuthUserFile /home/user/html/protect-me-dir/.htpasswd To do this, The system requires two files - the. If you want something very simple and fast to do. I know you said that you wanted to do a simple authentication for the site, but doing it in JavaScript is unsafe and the usernames/passwords are easily retrieved. I just need to know how to put var name = document. That's because I'm too lazy to name them different things right now. Yes, I realize that the var name var psswd and var usr are repeated twice. My Question: how do I get javascript to put the input into an array that stays on the page so that when you try to get to index.html (which is where the password protection is) so that they don't have to set this up every time?Īlso, if it's simple enough, how can I run multiple passwords through encryption and keep it on the webpage so that if someone happens to get on here the passwords are safe? Var usr = document.getElementByID = "usr" Var psswd = document.getElementByID = "psswd" Var name = document.getElementByID = "name" I want to password protect a website (this is a personal family website, so I'm not worried about encryption or anything, unless it's super easy to do with javascript) so that only my family can get on. Import ccmsdb.sql file(given inside the zip package in SQL file folder)ħ.I've seen other questions similar to this, but I've tried answers and it doesn't appear to do what I want (if it does and I just can't see that it does, please just let me know in the comments. How to run the Cyber Cafe Management System (CCMS) Projectģ.Paste inside root directory(for xampp xampp/htdocs, for wamp wamp/www, for lamp var/www/html)Ĥ. Note: In this project MD5 encryption method used. Logout: Through this button admin can logout.Change Password: In this section admin can change his/her passwords.Profile: In this section admin can update his/her profile.Report: In this section admin can view number of users comes in cyber café in particular periods.Search: In this section admin can search users on the basis of entry id.Users: In this section, admin can add new users, update outime, price and remarks, and view details of old users.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |