centerwork Posted November 12, 2007 Share Posted November 12, 2007 Is there a way to login to a .htacces file using a link or something else with php? Quote Link to comment Share on other sites More sharing options...
Psycho Posted November 12, 2007 Share Posted November 12, 2007 What do you mean? You don't "log in" to an .htaccess file. You could create a PHP page that requires a username/password and will display the contents of the file - and even include the ability to edit the file. Quote Link to comment Share on other sites More sharing options...
centerwork Posted November 12, 2007 Author Share Posted November 12, 2007 When ever the directory that contains a .htaccess file you are prompted for the username and password. Is there any way to bypass the login step with php and access the dir content. Basically having PHP enter the username and password and submitting it. Quote Link to comment Share on other sites More sharing options...
Branden Wagner Posted November 12, 2007 Share Posted November 12, 2007 so you want a php login script? that checks against the htaccess password file(.htpassword)? Quote Link to comment Share on other sites More sharing options...
centerwork Posted November 12, 2007 Author Share Posted November 12, 2007 What I need is a script that actually logins to the .htaccess file. I am basically trying to bypass having to uses cookies or sessions for a login section of a site. Quote Link to comment Share on other sites More sharing options...
Branden Wagner Posted November 12, 2007 Share Posted November 12, 2007 You cant login to a .htaccess file... nor can you bypass it... is the site that uses the .htaccess on YOUR server? if its your server, then just remove/rename the .htaccess file to temp.htaccess do what you need, then change it back or someone elses? if its on someone elses the only way to bypass it is to "brute force" it.. but no one here is going to teach you how to do that. Quote Link to comment Share on other sites More sharing options...
centerwork Posted November 12, 2007 Author Share Posted November 12, 2007 Thanks I'll look into it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.