Help - Search - Members - Calendar
Full Version: .htaccess Help
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
ISDSGroup
Hello i am new to web development and i am trying to add a password using .htaccess and .htpasswd to a page on my site. I created the .htaccess and .htpasswd files and uploaded them to the server in a separate folder with the page i want to protect. When i click on the link a box comes up which asks for a username and password but when i enter the correct information the box just keeps reappearing and the page never load. I dont know if it is the wrong encryption type or a bad link. I am confused and would appreciate any help or advice with this.

-RK
ISDSGroup
This is what my .htaccess and .htpasswd look like:

Access:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /Folder/.htpasswd
Require valid-user

Passwd:

ISDSGroup:$apr1$WyqMXch.$6YnMPFX.h/AFP7WRGnr7a.


I have tried multiple .htpasswd generators and they all give me a different password but none of them have worked.
zpcs
Hi ISDSGroup,
I'm not not wizard on this, but... at Comprehensive guide to .htaccess, it pretty much dictates that the "attempt of what you are doing" appears as though this is for the SERVER ADMINISTRATOR, to wit; "If you have installed scripts on your server, you should be familiar with this." (emphasis on the word "your"). The actuality of the .htaccess file in your web hosted account is that you are a user of the server and have no administrative access to the server (and I have to believe that Zymic will not allow you that "behind the scenes access").

While the advent of securing [a] certain page(s) is sometimes a desire of One for their web this (restricted access) is usually obtained through the use of a USER LOG IN SYSTEM generally performed with the employ of Server-side script(s) including a database (MySQL, for example) in which therein resides the members that have "Logged In" privilege(s).

I'm new to this aspect of Server-side scripting and am currently starting my journey in this area with learning PHP and MySQL (it'll probaby be a few more months before I'm able to get the basic development of such a "Log In" capability for certain people (Registered Members Only).

This is just a brief on this but... If you're looking to gain just a quickie for the people you (Trust without equivocation) would like to access a page until you can provide the adequate solution of a "Log In" system just create a a page far removed from the actual area of your existing web and allow only those trustworthy the address of the page. (make the page as clean as possible without the use of common ordinary everyday practice of a web page, i.e., nothing but straight HTML in it's basic form with no links or description(s) and use as much graphics in the place of text as possible to keep the ever-roaming web spiders from looking at it)

Hope this helps you out in this area.

Edit: To my knowledge: As far as being, using the .htaccess file in the Zymic arena is that you may write to it in concern for personality of your site for customizing error pages (that's my extent of knowledge thus far in the .htaccess area here).
As far as the mentioning of the Comprehensive guide to .htaccess it appears that a comprehensive guide (in my opinion) would be much more comprehensive than is presented there, I believe the page actually provides for more questions than it gives in answer(s) to question(s). Sometimes One just needs to learn of doing a thing to make it occur rather than just grabbing things off the Internet and pasting it to what something says it is applicable to.
...If you shortcut the process expect the outcome to be lesser than the desired result...

Ohhh... even more Editing:
.htaccess Posting 1
.htaccess Posting 2
.htaccess Posting 3
.htaccess Posting 4
When in doubt ...whip it out => Use the Zymic WEBMASTER RESOURCE "Search" feature (you know the "text entry box" with the orange button to the right of the "text entry box" in the Zymic WEBMASTER RESOURCE Main Menu Bar atop of every page) by placing the entry " .htaccess " in it , then press the orange button. <=
Look at that, I didn't expect to learn anything new this early in the day (03:29 AM U.S.A. C.T.Z. DST) which is really the end of my day - so much for winding it down `cuz now I've stumbled upon something that'll assist me temporarily - Thanks ISDSGroup for your Post and I'm glad I took the time to Reply. ...a little disciplined and tenaciously desired effort goes a long ways to teaching Ones' self...
ISDSGroup
Hey thank you for the reply, i am really just doing this for a school project and i wanted a section where users had to login on my site. It doesent even really have to be encrypted or that secure or anything although it would be nice if it was. I was mostly just looking for a simple user login section though. Maybe it is more difficult then i thought. Anyway i'll check out the links you posted an see if they get me any further along. I dont think the removed page idea would work for this application since i have to demo it, but thanks for the idea.
zpcs
Cool... nothing like a goal to achieve. I popped around myself on this some more and I came across this Reply (Post). I noticed the AuthUserFile is using the htdocs filename addressing convention for the htpasswd and it mentions the encryption of password (...from the utility of the Server Software - Apache? maybe for compatibility sake?).

Gonna give this a try...

Hope this helps you out.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.