[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] .htaccess to pevent hotlinking Raq4



> > 
> > Is the closing / there when you view the site? I've noticed 
> that using 
> > that .htaccess that www.domain.com instead of www.domain.com/ the 
> > images are broken.
> 
> Yes the closing / shows when I view the site
> 

I was using the following in my /images directory and the only problem
seemed to be when anyone accessed the main page without the closing /.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.sample.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://sample.com/.*$ [NC]
RewriteRule .*\.gif$ - [F]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.sample.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://sample.com/.*$ [NC]
RewriteRule .*\.jpg$ - [F]

-- 
Dan Kriwitsky

Please reply to the list only. Offlist replies are not read.