.htaccess embeded in html
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 posted this at 10:11 — 4th June 2004.
He has: 6,151 posts
Joined: May 2001
Are you trying to password protect 'secert' folder? to ask name and password on entry.
andy206uk posted this at 13:25 — 4th June 2004.
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
nick.88 posted this at 23:23 — 15th June 2004.
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.