LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > FilesMatch

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2007, 10:14 AM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Default FilesMatch

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?
Reply With Quote
  #2  
Old 08-16-2007, 10:18 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
No, it will not work. You have to use rewrite rules to implement this.
Reply With Quote
  #3  
Old 08-16-2007, 10:22 AM
Dani Dani is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
thought so, thanks mistwang keep up the good work.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:29 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.