A well known
From the The Reductionist Challenge challenge. See all 1013 entries (closed)
( , Sun 2 Nov 2003, 10:31, archived)
web character in the least number of shapes
i bet someone beat me to it!
i bet someone beat me to it!
From the The Reductionist Challenge challenge. See all 1013 entries (closed)
( , Sun 2 Nov 2003, 10:31, archived)
Use htaccess
Umm, but don't ask me how to do that exactly, you'll have to Google for it!
( ,
Sun 2 Nov 2003, 10:38,
archived)
yep
you need to enable mod_rewrite on the web server, and modify .htaccess
( ,
Sun 2 Nov 2003, 10:39,
archived)
ah it`s no big deal to set up
there`s loads of tutorials for it, and basically you only need 3 or 4 rules, to block .gif / .jpg for example from anywhere except places you`ve explicitly set
( ,
Sun 2 Nov 2003, 10:45,
archived)
I'm not too fussed to be honest...
I don't think anyone would want to nick my images!
( ,
Sun 2 Nov 2003, 10:46,
archived)
nah but
it`s nice to be able to do it :-)
there was a phase when someone was posting nearly image off b3ta onto some shitty forum... you should have seen some of the anti hotlinking pics - I think sargant did a good one
( ,
Sun 2 Nov 2003, 10:48,
archived)
there was a phase when someone was posting nearly image off b3ta onto some shitty forum... you should have seen some of the anti hotlinking pics - I think sargant did a good one
i love it when people hotlink my stuff
i get to see so much of the interweb by checking my webstats. i'd never want to stop them!
( ,
Sun 2 Nov 2003, 10:50,
archived)
my interweb stats only wshow the top 25
which qre invariably b3ta archive pages. i can download my logs but i can't be arsed.
( ,
Sun 2 Nov 2003, 10:51,
archived)
i wrote a little thing to strip everything except for urls out of an ascii page
maybe i'll tidy it up and post it some time
( ,
Sun 2 Nov 2003, 10:53,
archived)
i disabled it in the end
people were using proxies to view b3ta, hence changing the url and, well, destroying the front page
( ,
Sun 2 Nov 2003, 10:50,
archived)
This works for me.
( ,
Sun 2 Nov 2003, 10:54,
archived)
RewriteEngine on
RewriteRule images/image1\.gif$ - [R,L]
RewriteRule images/image2\.jpg$ - [R,L]
RewriteRule nosteal.gif$ - [R,L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://pub([0-9]+)\.ezboard\.com/b([a-z0-9]*)\.showUserPublicProfile\?gid\=ezuser [NC]
RewriteCond %{HTTP_REFERER} !^http://pub([0-9]+)\.ezboard.com/(f|b)ezboard.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?u-muppet.co.uk$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?u-muppet.co.uk/.*$ [NC]
RewriteRule \.(gif|jpg)$ u-muppet.co.uk/nosteal.gif [R,L]
RewriteRule css/test\.css$ - [R,L]
RewriteRule bob\.js$ - [R,L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://pub([0-9]+)\.ezboard\.com/b([a-z0-9]*)\.showUserPublicProfile\?gid\=ezuser [NC]
RewriteCond %{HTTP_REFERER} !^http://pub([0-9]+)\.ezboard.com/(f|b)ezboard.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?u-muppet.co.uk$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?u-muppet.co.uk/.*$ [NC]
RewriteRule \.(css|js)$ - [F]
count yourself lucky
I`m gonna have to write a Java URL filter for my web server :-)
( ,
Sun 2 Nov 2003, 11:00,
archived)
the hard bit is
making sure mod_rewrite is installed! I had to (when I ran apache) rebuild the server from source
the rules are fairly easy, and you can specify which files can and can`t be gotten at from external urls (i.e. you can set up who`s allowed to hot link your stuff)
( ,
Sun 2 Nov 2003, 10:46,
archived)
the rules are fairly easy, and you can specify which files can and can`t be gotten at from external urls (i.e. you can set up who`s allowed to hot link your stuff)
it`s usually called "hotlinking"
and if you`re running Apache it`s very easy
( ,
Sun 2 Nov 2003, 10:39,
archived)