• Just me rambling…

    Is it just me, or does it seem like after Blogger started allowing free image hosting, more people are hotlinking?

    I moved servers a couple of months ago, and forgot to setup the .htaccess for one of my friend’s sites to deny hotlinking. Today, I go and check the logs, and a crap-ton of blogspot sites hotlinking…

    Was a wrong of me to leave them a nasty comment on their post?

    Naaaaw!

    I hate Blogger.

    </rant>

Viewing 13 replies - 1 through 13 (of 13 total)
  • More fun to change the image!

    Thread Starter techwench

    (@techwench)

    Yeah, I contemplated substituting it for something with lots of nudity and nasty imagery…but I ended up just blocking it.

    I definitely don’t think it’s wrong to leave a comment. I found some chick on myspace that was using one of my images for her background. I had to sign up for an account just so I could email her and ask her to remove it. Of course she didn’t bother to respond and say sorry, but she did change it. Then I set up the ban on hotlinking and redirect everything to an image that says “try asking first next time!” I still see some myspace sites in the log, but it only says profile.myspace or something, so I can’t tell where it really is. irks me.

    Thread Starter techwench

    (@techwench)

    I don’t remember ever having a problem with myspace. Most of my problems come from blogger…and LiveJournal

    Once, there was a LiveJournal site that damn near shut down a small site I setup for a friend.

    Thread Starter techwench

    (@techwench)

    That’s good, Joebar. I did have to recondsider my stance on redirecting images after I read the comments on the most recent post on said blog.

    According to this person’s groupies, I should “go f [myself]” for “acting like a two year old” because I told this person that they were stealing bandwidth that I am paying for.

    So, anyone trying to steal my bandwidth will be greeted with this lovely image. ??

    Moderator James Huff

    (@macmanx)

    ROTFLMAO! Now I have to see that post from “said blog”. Could you post a link? Or at least a screenshot? ^_^

    Thread Starter techwench

    (@techwench)

    heh. sent you an email, macmanx. ??

    techwench, how do you set up the redirect to the image? I know it’s in .htaccess, but what to write?
    And why email it to him? I would love to see it to! ??

    Moderator James Huff

    (@macmanx)

    Well, what I would do is rename the image and edit the post that includes it (so that my blog isn’t affected), then upload an offensive image with the old file name (so that the offending blog is affected).

    If you don’t want to do that, you could also add this line (and it should be all on one line with a single space dividing the old path and new URL) to your .htaccess file:

    Redirect temporary /path/to/stolenimage.jpg https://www.yourdomain.com/path/to/offensiveimage.jpg

    ::Edit:: See Techwench’s solution below. It covers the redirection of all hotlink attempts for specified list of filetypes and a specified list of domains.

    Thread Starter techwench

    (@techwench)

    This needs to go above the # BEGIN WordPress comment, or WP will overwrite it next time you post.

    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^/hotlink
    RewriteRule ^.*$ - [L]
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} .(gif|jpg|jpeg|png|bmp)$ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://techwench.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://techwench.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.techwench.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.techwench.com/.*$ [NC]
    RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ https://www.techwench.com/hotlink/asshead.jpg [R,NC,L]

    line 2: defines a directory that does allow hotlinking (this is where the redirected image is stored)

    line 5: (edit) don’t pay attention to what I wrote here. I’m on crack.

    line 7-10: defines urls that are allowed to display images (your site) with and without “www” and with and without trailing slash.

    line 11: the magic line, defines the image to redirect hotlinked images to.

    EDIT: hmmm…you might want to copy and paste it to a text editor…this forum breaks the lines. ??

    Thread Starter techwench

    (@techwench)

    Rander, I don’t wanna link it here because 1) I already linked it somewhere I shouldn’t have earlier, and 2) the last time I linked something like this (not here), a hundred people went over to the site and started flaming them in their comments. ??

    Here’s an online “wizard” that will generate the required stuff you need to put into your .htaccess file. Very easy.

    https://www.htaccesstools.com/hotlink-protection/

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘bandwidth thieves’ is closed to new replies.