Computing.Net > Forums > Web Development > help with .htaccess/ .htpasswd

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

help with .htaccess/ .htpasswd

Reply to Message Icon

Name: FBI Agent
Date: June 13, 2004 at 11:50:25 Pacific
OS: WIN XP
CPU/Ram: 1.79Ghz/ 384 RAM
Comment:

allow from 000.000.000.000

where 000.000.000.000 is the IP address. If you only specify 1 or 2 of the groups of numbers, you will allow a whole range.


how would you write that in the .htaccess file?

also, if you can help me with my .htpasswd that'd be cool. i have it in the same directory as the .htaccess and the file contains

AuthName "Admin Area"
AuthType Basic
AuthUserFile .htpasswd
Require valid-user

and the .htpasswd has my name:password

FBI_Agent



Sponsored Link
Ads by Google

Response Number 1
Name: safeTsurfa
Date: June 13, 2004 at 11:54:47 Pacific
Reply:

http://www.javascriptkit.com/howto/htaccess.shtml Refer to Deny users by IP for the first question, and Password protection for the second.


0

Response Number 2
Name: FBI Agent
Date: June 13, 2004 at 12:19:12 Pacific
Reply:

well thanks for that first part about the IP address blocks. the password thing still wont work. i have

//htaccess
AuthName "Admin Area"
AuthType Basic
AuthUserFile .htpasswd
Require valid-user

//htpasswd
John:Doe

it'd be a lot of help if you could just tell me what to put to make it work instead of refer me to a site that says the same thing that i have. thanks

FBI_Agent


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Editing php forum for my site



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: help with .htaccess/ .htpasswd

Apache2 .htaccess/.htpasswd files www.computing.net/answers/webdevel/apache2-htaccesshtpasswd-files/976.html

Help with Apache webserver! www.computing.net/answers/webdevel/help-with-apache-webserver/1638.html

Help with div layers and background www.computing.net/answers/webdevel/help-with-div-layers-and-background/2257.html