Twelve Years of Service
Posts: 112
Threads: 10
Having a Login 06-20-2014, 02:59 AM
#1
Hello Hack Community,
I have been making a website and I want it so that there is a log in. There doesn't need to be a password, but I want it to check for that, like maybe within a text file or something. How do I do it so that it isn't in the actual code. If anyone knows how to do that, please comment.
-NinjaKnight-
•
Thirteen Years of Service
Posts: 3,169
Threads: 99
RE: Having a Login 06-20-2014, 03:21 AM
#2
having it in a text file is probably more insecure than having it in the code? lol
but what do you mean you there doesnt need to be a password? you just want a username? that'll be piss easy to bruteforce!
•
Fourteen Years of Service
Posts: 1,398
Threads: 51
RE: Having a Login 06-20-2014, 06:00 AM
#5
If you have to ask about code for such, you're not ready to work with it. It's not a simple task to write such parts of websites, since there's so much security to think about at the same time.
It's a bad idea to store anything important in text files, data bases man, data bases. MySQL probably is going to be the easiest way (or SQLite or postgres) depends on what you're actually making your website with?
Tell me a bit more about what technologies you're using, otherwise I would be able to find related examples and documentation.
•
Twelve Years of Service
Posts: 36
Threads: 1
RE: Having a Login 07-05-2014, 08:28 AM
#10
JavaScript is mostly client-side. To use a server-side language, there are some options. For an easier language, choose PHP. Otherwise, other languages like ASP may work out for you. You will also need a database to store (surprise, surprise) data. Your webhost should provide a MySQL database. Learn MySQL in places like W3Schools.
•