0

All,

I have developed an internal website for a firm and then need to restrict access to only the internal workers. i.e. connected to their own wireless network. For anyone outside the network, the website should not open up at all. For those in the network, username/password should be prompted?

How can I:
1 > Check for the access depending on IP address?
2 > Check for username/password prompt if IP address is valid?

2
  • We need more information: 1. what web server are you running. 2. where is the username/password stored?
    – toneplex
    May 17, 2011 at 21:42
  • More information as in ? Please be specific. Since I have never done this before, I don't know what would be needed May 17, 2011 at 21:43

2 Answers 2

0

I'm going to post my answer assuming you used apache. You can do this but you need to generate the users/password file so have a look at the documentation for that.

<Location />
  Order Deny,Allow
  Allow from company.com
  Deny from all
  Require user someuser
  Require user someotheruser
</Location>
2

Unless you have requirements other than protecting the site from users in the outside world, you don't need to do any form of authentication as the intranet site should be hosted on a server local to the intranet and with no form of connection to the outside world.

1
  • 1
    In other words, the website is behind the firewall, invisible to internet users. May 17, 2011 at 22:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .