View Single Post
  #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