telophase: (Kenpachi loves you)
telophase ([personal profile] telophase) wrote2008-10-27 09:53 am

More Kenpachi-chan FTW!

Getting this posted in between LJ's bouncing up and down...

*dies laughing*







Also: http://www.gaiaonline.com/p/6915244 <- warning, music plays.

[identity profile] ninja-tech.livejournal.com 2008-10-27 10:18 pm (UTC)(link)
Wow. And these people haven't noticed at all? That's very strange. Plus, I've always wondered why you would hotlink when it's easier to save to your PC anyway? *puzzled*

[identity profile] telophase.livejournal.com 2008-10-27 10:26 pm (UTC)(link)
I think the vast majority have no idea what all this mysterious Intarwebs stuff is about and don't realize that they're stealing bandwidth that costs money from other people when they do that. With a sizeable minority that do realize it and just don't care.
ext_2414: Brunette in glasses looking at viewer with books behind her (Default)

[identity profile] re-weird.livejournal.com 2008-10-28 05:48 am (UTC)(link)
How do you set it up so that when people hotlink this shows up instead?

[identity profile] telophase.livejournal.com 2008-10-28 01:06 pm (UTC)(link)
An .htaccess file. Make a file in the directory you don't want shared (I have it in http://www.magatsu.net/doujinshi and it works for http://www.magatsu.net/doujinshi/bleach, http://www.magatsu.net/doujinshi/deathnote, and http://www.magatsu.net/doujinshi/saiyuki, because they're all subdirectories of http://www.magatsu.net/doujinshi.)

Name the file .hataccess. If you write the file on your computer and upload it to your server, just name it htaccess.txt so you don't accidentally hide it from yourself. :D After you upload, rename it to .htaccess.

Put something like the following in:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !magatsu\.net [NC]
RewriteCond %{HTTP_REFERER} !projectbluerose\.com [NC]
RewriteCond %{HTTP_REFERER} !ebay\.com [NC]
RewriteCond %{HTTP_REFERER} !livejournal\.com [NC]
RewriteCond %{HTTP_REFERER} !journalfen\.com [NC]
RewriteCond %{HTTP_REFERER} !insanejournal\.com [NC]
RewriteCond %{HTTP_REFERER} !diary\.ru [NC]
RewriteCond %{HTTP_REFERER} !deviantart\.com [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule \.(gif|jpg|png)$ http://www.magatsu.net/kenpachi-chan.gif [R,NC,L]


The first line tells the server that you're about to give it some rules. The second says the rules apply to every file ending in .gif, .jpg, .jpeg, or .png. I have no idea what the third line is for. :) Lines 4-13 in my .htaccess file above are the exceptions - it allows magatsu.net, projectbluerose.com, eBay, Livejournal, etc. to show the images without a problem. Those are the lines you'll want to modify to allow whatever sites *you* want to show the correct images to show them. Lines 12 and 13 allow Google and other searches to find the images. Line 15 is the money shot - it redirects all .gif, .jpg. and.png requests that don't match the previous exceptions to Kenpachi-chan. :)

My exact understanding of how this is all done is somewhat shaky, so I may have told you soething not quite right. Regardless, if you google "htaccess stop hotlinking" you'll find lots and lots of info, and a few different kinds of tricks that may or may not work on all servers.