[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] mod rewrite
Hi Jeff,
Please note as Will had pointed out that this will only work on your RaQ2
and RaQ3 as the RaQ1 does not have mod_rewrite.
Edit your httpd.conf file and add the following within the <VirtualHost> for
the domain in question, replacing 'domain' with the domain name and edit the
'.com' as well if it is necessary:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*domain\.com/.*$ [NC]
RewriteRule .*\.gif$ - [F]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*domain\.com/.*$ [NC]
RewriteRule .*\.jpg$ - [F]
Then restart httpd for these changes to take effect:
/etc/rc.d/init.d/httpd.init restart
This will prevent people from directly linking to both .jpg & .gif images
within this site.
Best Wishes,
Charlie
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of SunUp Media
> Group, Inc.
> Sent: 21 March 2000 02:32
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: [cobalt-users] mod rewrite
>
>
> Hi..
>
> I have RAQ1's, RAQ2's and RAQ3i's and this question pertains to the RAQ1.
>
> Of course, I have a handful if people hotlinking files from one
> of my virtual host clients really racking up the bandwidth charges.
> The people doing it are in Turkey and emails to the ISP's have
> proved fruitless. I want to use mod re-write to stop them from doing
> this so that requests for files and graphics can only come from
> within the virtual site. I dont see mod rewrite modules anywhere on
> the machine.
>
> Any help would be greatly appreciated.
>
> Jeff
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>