Forum Moderators: coopster

Message Too Old, No Replies

Need help by-passing a protected web folder for member area

PHP and .htaccess protected folder by-pass

         

drushey

8:10 pm on Mar 25, 2004 (gmt 0)

10+ Year Member



I need help!

Is it possible to by-pass .htaccess on a protected folder, if user accesses a particular file or url? Or can I somehow embed or hardcode username/password.

This used to be possible with [username:password@domain.com,...] however I can no longer use this. Need to do this with PHP or javascript (unfortunately, not CGI). If someone has some sample code, please post.

Reasons: Have a members area, which must have .HTACCESS protection. Need to somehow validate particular users without having to login through a pop-up.

httpwebwitch

8:33 pm on Mar 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



s'far as I know, if a page is protected by .htaccess, the only way to get in is with that pesky popup.

maybe there's something you can do with header() to send an AUTH... but I think you're probably going down the wrong road...

maybe this can help you:
h**p://ca.php.net/features.http-auth