Jump to content

Recommended Posts

Posted

Is it possible to set access to folders to only specific ip addresses / ranges?

 

Have a webserver hosting 1 intranet site and 1 internet site. Want access to the internet site from school / home. Access to intranet site from school.

 

Any ideas?

 

Cheers/

Posted

Yes.

 

Deny ALL
Allow 10.0.0.0/24 


Allow ALL
Deny 10.0.0.0/24

 

If you need something more complex, use IP based virutal hosts instead.

Posted

Thats just what i need :D

 

Dumb question - where do I stick the code?

Posted
In a similar tag to Geoff's example, . It should be in your httpd.conf file, or in a .htaccess file in the actual directory (httpd.conf is better).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...