Closed Thread Icon

Topic awaiting preservation: bandwidth theft and blocking linking Pages that link to <a href="https://ozoneasylum.com/backlink?for=12832" title="Pages that link to Topic awaiting preservation: bandwidth theft and blocking linking" rel="nofollow" >Topic awaiting preservation: bandwidth theft and blocking linking\

 
Author Thread
tomeaglescz
Paranoid (IV) Inmate

From: Czech Republic via Bristol UK
Insane since: Feb 2002

posted posted 07-24-2003 14:24

OK, as ya may have spotted i am going to be throwing up a free image hosting service, having talked with emps after something i tried failed we thought it would be worth throwing this in here for peoples thinking about.

now the way i aprroached is this,

i am running an apache server, and following this guide here

set a .htaccess file in this path

phpdev/www/public/images

this is the code for the .htaccess

SetEnvIfNoCase Referer "^http://www.ozoneasylum.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.ozoneasylum.com$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 07-24-2003 14:31

tomeaglescz: Thanks for starting this again. We have kicked this around in here before (although I can't find the old threads) but it appears we never got it quite right somehow so it needs another trip around the block. I'll dig out some resources later and probably start a FAQ.

___________________
Emps

FAQs: Emperor

trib
Paranoid (IV) Inmate

From: Den Haag, Netherlands
Insane since: Sep 2002

posted posted 07-24-2003 17:23

Assuming you're using Apache, did you check the httpd.conf file to see what overrides are permitted for the images directory?

and shouldn't you be de-limiting the dots with a "\" ?? after all, in a regexp, "." means one character, whereas "\." means "dot".

how would this work ???

setenvifnocase referer ^http://(www\.)?your\.domain\.com.*$ local_ref=1
setenvifnocase referer ^http://(www\.)?another\.com.*$ local_ref=1
setenvifnocase referer ^http://(www\.)?ozoneasylum\.com.*$ local_ref=1
<FilesMatch "\.(gif

tomeaglescz
Paranoid (IV) Inmate

From: Czech Republic via Bristol UK
Insane since: Feb 2002

posted posted 07-24-2003 19:50

thanks trib i'll give it a whirl

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-24-2003 22:42

Here's the one that we typically refer to in some of the treads. It's made a huge difference. It sits in the root of http://www.macombsheriff.com/ (some added items were removed for security reasons, but this is what does most of the work)

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?macombsheriff.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://localhost/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://65.61.155.239.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.216.120.(15*)$ [NC]
RewriteRule \.(gif

« BackwardsOnwards »

Show Forum Drop Down Menu