Guest Posted April 27, 2006 Posted April 27, 2006 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/
webman Posted April 27, 2006 Posted April 27, 2006 If this is what you're after: mod_access E.g: Allow from 10.1.0.0/255.255.0.0 If not, I think you're looking at Virtual sites.
Geoff Posted April 27, 2006 Posted April 27, 2006 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.
Guest Posted April 27, 2006 Posted April 27, 2006 Thats just what i need Dumb question - where do I stick the code?
webman Posted April 27, 2006 Posted April 27, 2006 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).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now