I want to add a login/pw section to this website, but I'm somewhat clueless. Been looking around on the internet, but I dont even know what the best thing to use is.
It's not cgi or coldfusion, if you want basic passwording. If you put a .htaccess file in the directory, with usernames and their encrypted passwords, it'll pop-up one of those login screens. Look up how to make the .htaccess file somewhere on the internerd.
.htaccess is pretty damn easy. You can make it block ip's too. I've got a few hidden directories on my site that only allow certain computers to access them.
_________________ Aw man, I shot Marvin in the Face!
Joined: Mon 09-01-2003 4:09PM Posts: 318 Location: Blah blah land
Source: CompSci Building
If you use an .htaccess method, be sure to restrict the permissions on the file so that just you can edit it and it can't be viewed from the outside. Also, do consider that even when you use the .htaccess method that the data going over the internet is very easy to get ahold of, but it's easy for just a personal site.
really.. .htaccess is not a viable alternative for IIS.
It is the best for apache... but you have to make sure your server is configured to use them...
PHP/MySQL is good... but if you code it wrong... I could get in. It also means you would have to be running a mysql server and have php setup.
do not use java script for this type of thing.
CGI might be your best bet if you want to transfer it cross platform/server... but I only make cgis with c/c++...
if you want to write one in c++... I have a sweet Class that is a MUST for writing c++ cgi's. cgi, php, htaccess.. they pretty much all work in the same way... they read a password list and let you. If you want to write a cgi though.. you have to be clever. You could make it like this:
~.com/bmpfg8/cgi-bin/access.cgi?file=/private/index.html&md5=21l34j23kj42342j3lkj3kj43j42
You can set the md5 variable to equal some cookie value so you don't have to enter it every time you want to call the access.cgi. It would compare that string to an encrypted password list.
so basically... everything other than writing your own cgi is easier.
you might not be able to use htaccess... php/mysql is also easy... if you want quick/low security... just use javascript... it will keep those out that can't read code. Some javascript thing make you create a directory like ~/1232j3k2j1l32kj1l23/ . The dir is usually some encrypted password.
Users browsing this forum: No registered users and 7 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum