-
Deny access to all only 2 IPs, allow directory listing
Hello,
i have apache webserver, i want to disallow all IPs access to some fodler and its subfolders. At same time i want to allow 2 IPs and also they must have not turned of directories listing (Options -indexes)
please is there a way how to do it? I tried htaccess deny rules, but still other IPs can see directory index and execute php.
they can access even i have only Deny from all line in htaccess, they also can execute php
-
How did you do deny rules in htaccess? Was it like the following example?
order allow,deny
allow from IP address 1
allow from IP address 2
deny from all
The order of "deny" and "allow" is very important.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|