[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] .htaccess to pevent hotlinking Raq4
- Subject: RE: [cobalt-users] .htaccess to pevent hotlinking Raq4
- From: "Dan Kriwitsky" <list1@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu Sep 26 18:28:04 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> >
> > 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.