Deny accss to a log file using .htaccess

Discussion in 'General' started by helenp, Dec 8, 2012.

  1. helenp

    helenp Member

    I am trying to deny access to a logfile for paypal, and it seems it does not work to do so.
    I have tried this:
    <Files ~ "\.(log)$">
    order allow,deny
    deny from all
    I have also tried other similar, blocking only the particular file and nothing works.
  2. mistwang

    mistwang LiteSpeed Staff

    It works fine in our cPanel test environment.
    Can you verify whether it works properly under Apache by switching back to Apache temporarily? Just in case it is a configuration error.

    If it works under apache, we will investigate.
  3. helenp

    helenp Member

    Dear mistwang,
    I cant do that as I am just a hosted client.
    I would have to ask my host. Not sure if related but sounds as it is to me: I found this post from august about error_log:

Share This Page