Results 1 to 4 of 4
-
03-19-2004, 04:29 PM #1Web Hosting Master
- Join Date
- May 2003
- Posts
- 1,069
htaccess ban ip to specific file and not hole site
hey guys
can i use htaccess to ban an ip accessing a specific .html page instead of the whole site/folder?
cheers
aqi
-
03-19-2004, 04:52 PM #2Disabled
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,851
http://httpd.apache.org/docs/misc/rewriteguide.html
http://httpd.apache.org/docs/mod/mod_rewrite.html
I believe it's possible.
Here is some reading on the subject.
-
03-19-2004, 05:04 PM #3Web Hosting Master
- Join Date
- Sep 2002
- Location
- Illinois
- Posts
- 2,307
<FilesMatch "filename.html">
deny from ip
</FilesMatch>
Replace filename with the real filename, ip with the ip address
For details go here
http://httpd.apache.org/docs/mod/core.html#filesmatch
-
03-19-2004, 06:15 PM #4Web Hosting Master
- Join Date
- May 2003
- Posts
- 1,069
much obliged