Asked by duncanb7
at 2024-07-09 06:58:45
Point:500 Replies:9 POST_ID:828585USER_ID:11059
Topic:
PHP Scripting Language;JavaScript;Apache Web Server
I would like to deny one IP address to visit my website to read all my directoy files
I tried to use the following .htaccess file and ftp it into my public_html root directory.
=================================.htaccess file =============
# -FrontPage-
ErrorDocument 404 /blank.html
<Limit GET POST>
order deny,allow
deny from 63.238.185.242
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
=====================================
But it doesnt work any way even I reboot my VPS server.
COuld you tell how to make it success? Please advise
I am using apache Linux CentOS-64 system
Duncan
I tried to use the following .htaccess file and ftp it into my public_html root directory.
=================================.htaccess file =============
# -FrontPage-
ErrorDocument 404 /blank.html
<Limit GET POST>
order deny,allow
deny from 63.238.185.242
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
=====================================
But it doesnt work any way even I reboot my VPS server.
COuld you tell how to make it success? Please advise
I am using apache Linux CentOS-64 system
Duncan