# You annoying piece of SHIT.

**URL:** <https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020>\
**Category:** The BBQ Pit\
**Created:** [April 22, 2002, 6:24pm UTC](https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020 "2002-04-22T18:24:39Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![black\_rabbit](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@black\_rabbit](https://boards.straightdope.com/u/black_rabbit)\
**Post date:** [April 23, 2002, 12:23am UTC](https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020/21 "2002-04-23T00:23:53Z")

</div>

If you’re running Apache, here’s an easy way to fuckemup in the future:

[http://www.thesitewizard.com/archive/bandwidththeft.shtml](http://www.thesitewizard.com/archive/bandwidththeft.shtml)

---

<div class="post-metadata">

**Author:** ![Mockingbird](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@Mockingbird](https://boards.straightdope.com/u/Mockingbird)\
**Post date:** [April 23, 2002, 12:35am UTC](https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020/22 "2002-04-23T00:35:48Z")

</div>

black455:

Your suggestions are MOST EXCELLENT! THANKS!!!

---

<div class="post-metadata">

**Author:** ![Arden\_Ranger](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@Arden\_Ranger](https://boards.straightdope.com/u/Arden_Ranger)\
**Post date:** [April 23, 2002, 12:49am UTC](https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020/23 "2002-04-23T00:49:49Z")

</div>

Heheheh.

Love the squirrel.

---

<div class="post-metadata">

**Author:** ![black\_rabbit](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@black\_rabbit](https://boards.straightdope.com/u/black_rabbit)\
**Post date:** [April 23, 2002, 2:33pm UTC](https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020/24 "2002-04-23T14:33:13Z")

</div>

> [@](#):
>
> \*Originally posted by Hastur \*  
> \*\*black455:
> 
> Your suggestions are MOST EXCELLENT! THANKS!!! \*\*

You’re welcome. I’m planning on messing around with it on my own site via the slightly moe complicated version below… I’ll let you know how it turns out:

[http://javascriptkit.com/howto/htaccess10.shtml](http://javascriptkit.com/howto/htaccess10.shtml)

I’ve got one directory with banners that I want to leave open for hotlinking, so I’ll have to tweak it even further.

---

<div class="post-metadata">

**Author:** ![black\_rabbit](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@black\_rabbit](https://boards.straightdope.com/u/black_rabbit)\
**Post date:** [April 23, 2002, 6:28pm UTC](https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020/25 "2002-04-23T18:28:40Z")

</div>

My webhost has disabled mod\_rewrite, so this following won’t work for me:

```auto

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.neussubjex.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://neussubjex.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://neussubjex.net/links/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://bored.neussubjex.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://word.neussubjex.net/.*$ [NC]
RewriteRule \.(gif|jpg|png)$ http://www.neussubjex.net/nambla.gif [R,L]

```

If that 's the case for you, too, you might want to try this:

```auto

<FilesMatch "\.jpg$">
ErrorDocument 403 /nambla.gif
SetEnvIf Referer "^http://neussubjex\.net" local_referal
SetEnvIf Referer "^http://www\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://bored\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://word\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://neussubjex\.net/links/" local_referal
SetEnvIf Referer "^$" local_referal

Order Deny,Allow
Deny from all
Allow from env=local_referal
</FilesMatch>

<FilesMatch "\.gif$">
ErrorDocument 403 /nambla.gif
SetEnvIf Referer "^http://neussubjex\.net" local_referal
SetEnvIf Referer "^http://www\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://bored\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://word\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://neussubjex\.net/links/" local_referal
SetEnvIf Referer "^$" local_referal

Order Deny,Allow
Deny from all
Allow from env=local_referal
</FilesMatch>

<FilesMatch "\.png$">
ErrorDocument 403 /nambla.gif
SetEnvIf Referer "^http://neussubjex\.net" local_referal
SetEnvIf Referer "^http://www\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://bored\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://word\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://neussubjex\.net/links/" local_referal
SetEnvIf Referer "^$" local_referal

Order Deny,Allow
Deny from all
Allow from env=local_referal
</FilesMatch>

```

I’ve got it set to allow all of my subdomains and the directory where my banners are kept (…/links) so you’ll need to change yours to your particulars. You can add or delete urls as needed.

The “replacement” image is [nambla.gif](http://neussubjex.net/nambla.gif), which you should also change toyour own.

---

<div class="post-metadata">

**Author:** ![black\_rabbit](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@black\_rabbit](https://boards.straightdope.com/u/black_rabbit)\
**Post date:** [April 23, 2002, 7:18pm UTC](https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020/26 "2002-04-23T19:18:38Z")

</div>

For some reason, I can’t get the second method to work on multiple file formats.

So if you want to block JPGs, just use the following:

```auto

<FilesMatch "\.jpg$">
ErrorDocument 403 /nambla.gif
SetEnvIf Referer "^http://neussubjex\.net" local_referal
SetEnvIf Referer "^http://www\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://bored\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://word\.neussubjex\.net" local_referal
SetEnvIf Referer "^http://neussubjex\.net/links/" local_referal
SetEnvIf Referer "^$" local_referal

Order Deny,Allow
Deny from all
Allow from env=local_referal
</FilesMatch>

```

If anybody can suggest anything better, Id appreciate it.

BTW, this method only works on IE and NS. Opera must send out wierd headers or something, because the images keep showing up.

[Previous page](https://boards.straightdope.com/t/you-annoying-piece-of-shit/105020.md?page=1)
