[users@httpd] .htaccess question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am learning a bit of php and saw that this code is recommended to be
placed in .htaccess to prevent .inc files from being called in the
browser:
<Location ~ "/[^ ](?=\.inc(\?[^ ]*)?)/">
  Options None
  Order Allow, Deny
  Deny from All
  AllowOverride None
  Satisfy All
</Location>

Why it is using <Location> and not <Files> or <File>?

Also, is there any difference between <Files> and <File>? What is the
recommended wording?

Thanks.

Dotan Cohen
http://linux-apache-mysql-php.org/
29

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux