Results 1 to 4 of 4
  1. #1

    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

  2. #2
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,851

  3. #3
    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

  4. #4
    much obliged

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •