4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 .htaccess - ask for login only for certain IPs?
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Slugbone
Junior WebHelper
Junior WebHelper


Joined: 13 May 2003
Posts: 1

PostPosted: Tue May 13, 2003 7:01 am (14 years, 5 months ago) Reply with QuoteBack to Top

Hi folks,

got this problem: I want to configure my Apache-.htaccess in a way that it asks for username:password when users come from a certain IP. And it shouldn't ask when the request comes from a certain other IP. How can this be done?
My current .htaccess looks like this (always asks for pwd):
-----
AuthUserFile /path/to/passwords
AuthName "Members"
AuthType Basic

require valid-user
order deny,allow
deny from all
allow from xxx.xxx.xxx.x
Satisfy Any
-----

Thanks
Slugbone
OfflineView User's ProfileFind all posts by SlugboneSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.053381 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme