Computing.Net > Forums > Programming > pass protected web sites

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.

pass protected web sites

Reply to Message Icon

Name: KDog849
Date: December 14, 2002 at 04:00:50 Pacific
OS: -
CPU/Ram: -
Comment:

Hi,
How do you make a page on a web site that is pass protected? Example:
http://www.driverguide.com/guide/intro.htm
Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: micah
Date: December 15, 2002 at 16:16:43 Pacific
Reply:

If you have php put this at the top of your page:

header("HTTP/1.0 401 Not Authorized");

Then it should pop up that username and password box. When they input their username and pass it should be sent in their HTTP header, read that and if its correct don't send the 401. Don't quote me on the 401, I haven't used it for a while...



0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: pass protected web sites

Web Site creating with batch www.computing.net/answers/programming/web-site-creating-with-batch/15580.html

Rename Web Site Links www.computing.net/answers/programming/rename-web-site-links/6899.html

Message Board Web site www.computing.net/answers/programming/message-board-web-site/1226.html