How to give an authenticated access to a web site for some IP addresses
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to give an authenticated access to a web site for some IP addresses
Hello,
I want to give an access to my web site to the computers
in my office without any authentication.
But If anybody wants to access my web site outside
the office then it should be authenticated with the
user name and password.
Hi,
although i don't have the answer to your question but replying b'coz i think you are very desperate to do this. That's why you are posting it again and again
It wasn't bad that you posted this question in the security section of this forum. People here are quite intelligent.
To get more help i would have posted this query in some hacking forums also. They are more used to and aware of such kinda things. www.securibox.net www.hackerthreads.org
(hope i would not get flamed for this reply)
regards
Use the directive "Satisfy any" along with both Basic Auth and IP-based access control (Allow from x.x.x.x) in your authentication config. The exact example of what you are trying to setup is in the Apache documentation (see the section on the "Satisfy" directive towards the bottom).
Last edited by Capt_Caveman; 05-31-2006 at 02:25 AM.
dont think its possible , u can have authentication for all users or deny/allow per ip
Regards
From the link to the Apache docs that I posted above:
"A very good example of this is using access control to assure that, although a resource is password protected from outside your network, all hosts inside the network will be given free access to the resource. This would be accomplished by using the Satisfy directive, as shown below"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.