Blocking files by extension

Marcus

Well-Known Member
#1
Hi,

Is there any way to restrict access to files by file extension (e.g. restrict access to all files ending in '.inc') ? I've seen this in other webservers, but I can't seem to find it in the documentation for Litespeed.

Thanks for any responses.
 

mistwang

LiteSpeed Staff
#2
There are too many ways. Actually, you can do whatever method you used with Apache.
Uses rewrite Rules, or define a matching context with access denied, from .htaccess etc.
 
Top