On 11/29/12 11:55, Grant wrote:
  > You originally wanted "...logins from certain users to be from a
  certain IP address"
  > Now, you want from "any IP" In this case just restrict users with:
  >
  >
  >  AuthName "restricted stuff"
  >  AuthType Basic
  >  AuthUserFile /etc/apache2/users
  >  require user webmaster
  >
  > Just assign "password and user" from root:
  > # htpasswd2 -c /etc/apache2/users your-user-name

  I'm sorry I haven't been clear about this.  Sometimes an example is the
  best way.

  I want users jack and jill to be able to access the web content from
  any IP address, and I want users john and jacob to be able to access
  the web content only if they are coming from a certain IP address.  I
  don't want anyone else to have access.

  - Grant

For this I think you need to use IPtables, apache will not filter outgoing traffic.
--
Joseph

Reply via email to