Blocking IPs from entering some files on my server??
| From: | Radwan Aladdin | Date: | Thu, 04 Mar 2004 18:00:08 +0000 |
| Subject: | Blocking IPs from entering some files on my server?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179483@lists.php.net to get a copy of this message | ||
Hello..
I put a .htaccess file on my server, and everything is fine..
But the problem is that I want to prevent all users from seeing a page.. only some IP addresses can
see it..
So I tried to put my IP to be allowded.. but it said that I'm not allowded... So what to do?
Did anybody tried .htaccess files to prevent IP from seeing some pages and worked? Or to give the
permission for an IP address to see the page..??
This is the code :
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName ExampleAllowFromNCSA
AuthType Basic
<Limit GET>
order deny,allow
allow from 217.164.237.105
deny from all
</Limit>
So please try it on your IP address..
Waiting your replies..
Cheers..