troubleshooting Question

Deny IP in .htaccess

Avatar of duncanb7
duncanb7 asked on
PHPJavaScriptApache Web Server
9 Comments1 Solution631 ViewsLast Modified:
Dear expert,
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
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros