Blocking files by extension

Discussion in 'Install/Configuration' started by Marcus, Feb 28, 2007.

  1. Marcus

    Marcus Well-Known Member


    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.
  2. mistwang

    mistwang LiteSpeed Staff

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

    Marcus Well-Known Member

    Thanks, I'll check it out.

Share This Page