LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-29-2006, 03:26 AM   #1
sharad
Member
 
Registered: Dec 2005
Posts: 48

Rep: Reputation: 15
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.

Please tell me to solve this problem.
 
Old 05-29-2006, 07:59 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
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
 
Old 05-31-2006, 02:21 AM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
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.
 
Old 05-31-2006, 03:55 AM   #4
deeptish
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
can you .htaaccess to achieve these
 
Old 06-01-2006, 05:29 AM   #5
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
dont think its possible , u can have authentication for all users or deny/allow per ip

Regards
 
Old 06-01-2006, 07:15 AM   #6
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Quote:
Originally Posted by jayakrishnan
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"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give authenticated access to a web site for perticular IP addresses sharad Linux - Networking 1 05-29-2006 03:40 AM
ftp access to web site hosting dbtx Linux - Enterprise 2 05-13-2005 03:07 PM
web site to read/write access db info... Scrag Programming 7 07-02-2004 10:36 AM
Mozilla not allowing access to web site bocagolfer Linux - Newbie 7 08-04-2003 08:49 PM
Monitering web site access psychoholic Linux - Software 2 03-23-2003 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration