FilesMatch

Discussion in 'Apache Migration/Compatibility' started by Dani, Aug 16, 2007.

  1. Dani

    Dani New Member

    Hi, is it possible to something similar to this functionality in LS?

    SetEnvIfNoCase Referer "^http://(www\.)?mysite\.net" local_ref=1
    SetEnvIfNoCase Request_URI "white_logo.gif" local_ref=1
    SetEnvIfNoCase referer "^$" local_ref=1

    <FilesMatch "\.(jpe?g|gif|png|css)">
    Order deny,allow
    deny from all
    allow from env=local_ref
    </FilesMatch>

    As the HotLink does not currently have anything where you can whitelist filenames (URI) what I know of?
  2. mistwang

    mistwang LiteSpeed Staff

    No, it will not work. You have to use rewrite rules to implement this.
  3. Dani

    Dani New Member

    thought so, thanks mistwang keep up the good work.

Share This Page