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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Hotlink Protection a small problem.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2004, 02:21 PM
Pawelek Pawelek is offline
New Member
 
Join Date: Aug 2004
Posts: 4
Default Hotlink Protection a small problem.

Hello.
I've started this web server. It's works great, but i have problem with hotlink protection.
In Virtual Hosts i have:
Code:
 Enable Hotlink Protection	Yes
 Suffix	jpeg, jpg
It's works, but i have in /home/services/httpd/html/banners/ my banners (*.gif, and *.swf). This files need to have Disable hotlink protection.
A lots of people links my baners in yourself sites, but now banners don't show
What is wrong ?? What I must change ?

In httpd.conf (Apache 2.0) i was:
Code:
LoadModule rewrite_module       /usr/lib/apache/mod_rewrite.so                                                              
                                                                                                                            
<Directory "/home/services/httpd/html/jpg/art">                                                                         
        RewriteEngine on                                                                                                    
        RewriteCond %&#123;HTTP_REFERER&#125; !^$                                                                                     
        RewriteCond %&#123;HTTP_REFERER&#125; !^http&#58;//&#40;www\.&#41;?mydomain.net&#40;/&#41;?.*$     &#91;NC&#93;                                             
        RewriteCond %&#123;HTTP_REFERER&#125; !^http&#58;//&#40;www\.&#41;?domain.ws&#40;/&#41;?.*$     &#91;NC&#93;                                        
        RewriteRule .*\.&#40;jpg|jpeg&#41;$ http&#58;//www.mydomain.net &#91;R,NC&#93;                                                            
</Directory>                                                                                                                
                                                                                                                            
<Directory "/home/services/httpd/html/jpg/wallpapers">                                                                      
        RewriteEngine on                                                                                                    
        RewriteCond %&#123;HTTP_REFERER&#125; !^$                                                                                     
        RewriteCond %&#123;HTTP_REFERER&#125; !^http&#58;//&#40;www\.&#41;?mydomain.net&#40;/&#41;?.*$     &#91;NC&#93;                                             
        RewriteCond %&#123;HTTP_REFERER&#125; !^http&#58;//&#40;www\.&#41;?domain.ws&#40;/&#41;?.*$     &#91;NC&#93;                                        
        RewriteRule .*\.&#40;jpg|jpeg&#41;$ http&#58;//www.mydomain.net &#91;R,NC&#93;                                                            
</Directory>
Ps. Sorry for my english. I still learnt this language :oops:
Reply With Quote
  #2  
Old 08-09-2004, 07:58 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thank you for using our product.

It is not a problem of hotlink protection configuration, as "gif" and "swf" are not in the suffix list.
It is caused by improper permission masks on *.gif and *.swf, the execution bit is on, I believe.
please try
Code:
chmod a-x *.gif *.swf
under your banners directory.

By default, LSWS does not serve static files with execution bits on, if it is not perfered, please set "Restricted Permission Mask" under "Server"-> "Security" tab to "000".

Please let us know whether it is fixed or not.

Best regards.
Reply With Quote
  #3  
Old 08-10-2004, 11:59 AM
Pawelek Pawelek is offline
New Member
 
Join Date: Aug 2004
Posts: 4
Everything was good.
But i was in Virtual Host Mappings i forgot add domain.ws
i was only mydomain.net and www.mydomain.net
Everyone has linked my banners from domain.ws address

It was stupid things.
Thanks for help.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hotlink protection not working? blueface Install/Configuration 2 04-13-2007 04:03 PM
UserAgent whitelist in Hotlink protection chipus Feedback/Feature Requests 2 04-19-2005 06:15 AM
Hotlink protection and empty referers bogus Install/Configuration 1 10-20-2004 09:01 PM
Subdomain hotlink protection ChannelCat Feedback/Feature Requests 1 10-15-2004 07:31 AM
Hotlink protection? Due Install/Configuration 1 01-09-2004 06:08 PM


All times are GMT -7. The time now is 07:27 PM.



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