.htaccess embeded in html

They have: 10 posts

Joined: Jun 2004

Is there any way that I can embed .htaccess into and html form so that I do not get an ugly dialog box? I tried javascript, which creates a link in the address bar such as: username:[email protected]/secret/. Secret is the folder in which i want to protect... however I also want to link to a file in that folder.

If there is any way in which this can be done, please help me. I am new to perl and cgi, so if it requires that, I would need a little more detailed instructions. Thanks!

Busy's picture

He has: 6,151 posts

Joined: May 2001

Are you trying to password protect 'secert' folder? to ask name and password on entry.

He has: 1,758 posts

Joined: Jul 2002

Just use a cookies/sessions based login system instead of htaccess. theres plenty available on hotscripts.com Smiling

They have: 10 posts

Joined: Jun 2004

Thanks... yea, i wound up just using php to secure it. it works fine. Thanks!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.