Password-protecting a personal site

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

Password-protecting a personal site

Postby Kanerou » Mon Feb 13, 2006 9:18 am

Is this possible? And how could I do it in HTML?

OK, maybe I should clarify. I'm considering having a site for myself that only certain people can access, since my dad's really iffy about my having anything public. If I were to insert something into the HTML that would require a password, we'd both be happy. And I'm definitely a beginner as far as HTML goes (learned some basic stuff years ago and forgot it, it seems).
"You've gotta speak about those things you don't currently see as though they already exist. Back in the beginning, God didn't look into space and say, 'Gee, it's dark.' He called light into existence."

Gotta Getta Gundam. ;)

Raiden no Kishi (post: 1218170) wrote:Also, I hope never to hear "Nate" and "prance" in the same sentence again . . .
User avatar
Kanerou
 
Posts: 317
Joined: Wed May 25, 2005 3:25 pm
Location: Somewhere you aren't, most likely

Postby glitch1501 » Mon Feb 13, 2006 9:25 am

.htaccess is where its at


here is a pretty good tutorial on how to implement it
http://www.g4tv.com/screensavers/features/40416/PasswordProtect_Your_Website.html
good luck

Glitch's Photostream


He wants them to learn to walk and must therefore take away His hand; and if only the will to walk is really there, He is pleased even with their stumbles.

Image

Healing hands of God have mercy on our unclean souls
once again. Jesus Christ, Light of the World, burning
bright within our hearts forever. Freedom means love
without condition, without beginning or an end. Here's
my heart, let it be forever Yours, only You can make
every new day seem so new.
Every New Day - On Distant Shores - Five Iron Frenzy

Nail pierced hands they run with blood
A splitting brow forced by the thorns
His face is writhing with the pain yet it's comforting to me
Passion - Kutless
:thumb:
Image
User avatar
glitch1501
 
Posts: 2177
Joined: Mon Oct 20, 2003 6:50 pm
Location: the debris section

Postby Slater » Mon Feb 13, 2006 9:29 am

gah, that site has HTF ads...

Anyhow, I was kinda wondering some of these things. I definitly wouldn't use Java to password protect anything important, but htaccess seems pretty good
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia

Postby Kanerou » Mon Feb 13, 2006 9:34 am

Thanks. Um, how does one figure out what server they're on? And if I use a site from, say, Netscape or Yahoo, can I still do this?
"You've gotta speak about those things you don't currently see as though they already exist. Back in the beginning, God didn't look into space and say, 'Gee, it's dark.' He called light into existence."

Gotta Getta Gundam. ;)

Raiden no Kishi (post: 1218170) wrote:Also, I hope never to hear "Nate" and "prance" in the same sentence again . . .
User avatar
Kanerou
 
Posts: 317
Joined: Wed May 25, 2005 3:25 pm
Location: Somewhere you aren't, most likely

Postby TurkishMonky » Mon Feb 13, 2006 10:18 am

i used ASP.net forms protection with a sql database of users and roles... if you aren't afraid of getting your hands a little dirty, and can get a site that uses asp.net 2.0, i could give you some pointers that way - it's not very hard (but i haven't done any other way :( )
User avatar
TurkishMonky
 
Posts: 808
Joined: Mon Apr 11, 2005 8:07 am

Postby Mithrandir » Mon Feb 13, 2006 6:10 pm

Hmm... Your run of the mill free sites don't make it easy to password protect things. Obviously you can do it with PHP and MySQL (like we do here) and there are many other ways to do it much more securely. If you can get .htaccess access to your site, you'd add a directory that requres some username/password and that's that. If you do get that far, though, you'll wanna pick a password that's hard to guess. In any event, I wouldn't store much in the way of "secure" information on a site like that. It's generally too easy to hack them.

If you don't have that kind of access, see if you have CGI access. If so, you can get "psudo-secure (RTM)" with your data by simply requiring a certain token to be set via a login procedure on the site. It's a little tricky, but I think it would be easier for a beginning HTML programmer than, say, learning asp.net roles. :)
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby Kanerou » Wed Feb 15, 2006 9:11 am

OK. Thanks for your help, guys! And I'll try to remember that if I end up doing that, Turkish Monkey.
"You've gotta speak about those things you don't currently see as though they already exist. Back in the beginning, God didn't look into space and say, 'Gee, it's dark.' He called light into existence."

Gotta Getta Gundam. ;)

Raiden no Kishi (post: 1218170) wrote:Also, I hope never to hear "Nate" and "prance" in the same sentence again . . .
User avatar
Kanerou
 
Posts: 317
Joined: Wed May 25, 2005 3:25 pm
Location: Somewhere you aren't, most likely


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 154 guests