Support » Plugin: NinjaFirewall (WP Edition) - Advanced Security » Disable Directory Listings

  • Hi, I am using your great plugin on multiple sites and it would be great if you could enable an option to prevent Directory Listings.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    You cannot manage this at the PHP level, it has to be done at the HTTP server level. Apache will let you do that from a .htaccess though (add Options -Indexes to your main .htaccess), but not Nginx for instance.

    Hi, yes I understand that, but since Nina Firewall writes to the .htaccess during setup then I was thinking maybe a checkbox could be added to add the “Options -Indexes” line.

    Thanks in advance

    Plugin Author nintechnet

    (@nintechnet)

    You are probably running PHP as an Apache module and NinjaFirewall must write to your .htaccess but most of the time it does not use the .htaccess but writes to the PHP INI file instead (CGI/FastCGI etc).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Directory Listings’ is closed to new replies.