/    Sign up×
Community /Pin to ProfileBookmark

Help with .htaccess & .htpasswd

OK.. I do not have “ultimate access” to the guts of the server I am using but can run SSI commands and route error pages and force parsing via .htaccess (Apache/1.3.22 Server)

I am trying out access controls…..

My question is WHY would a password control on a directory not work…

[url]http://www.marketeering.net/british-aggregates/members[/url]

I have cut and pasted an encrypted password

generated here:

[url]http://www.4webhelp.net/us/password.php[/url]

to a .htpasswd file then ASCII transferred to the server (into the same directory)

I have generated a .htaccess file in the directory thus…
(no line breaks in locations BTW)

AuthName “British Aggregates Association Members Area”
AuthType “Basic”
AuthUserFile /www/marketeering/british-aggregates/members/.htpasswd
AuthGroupFile /dev/null
<Limit GET>
require user test
</LIMIT>
AddHandler server-parsed .htm
AddHandler server-parsed .html

Why would this not work?

Attempted access prompts a password box but no attempts to put in

user name test
password password

seems to work…. I get a 401 after “n” goes

HELPPPPPPPPP this a bit of “playing” to get used to doing this thing for real

John

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@Robert_WellockNov 25.2002 — I am assuming you have the following encrypted string within the .htpasswd extension: [b]test:m67VXP4hQhyDk[/b]
×

Success!

Help @johnbullas spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...