WordPress.org

Ready to get started?Download WordPress

Forums

bandwidth thieves (14 posts)

  1. techwench
    Member
    Posted 8 years ago #

    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>

  2. Joebar
    Member
    Posted 8 years ago #

    More fun to change the image!

  3. techwench
    Member
    Posted 8 years ago #

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

  4. oriecat
    Member
    Posted 8 years ago #

    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.

  5. techwench
    Member
    Posted 8 years ago #

    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.

  6. Joebar
    Member
    Posted 8 years ago #

  7. techwench
    Member
    Posted 8 years ago #

    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. ;)

  8. James
    Happiness Engineer
    Posted 8 years ago #

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

  9. techwench
    Member
    Posted 8 years ago #

    heh. sent you an email, macmanx. ;)

  10. Rander
    Member
    Posted 8 years ago #

    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! :-)

  11. James
    Happiness Engineer
    Posted 8 years ago #

    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 http://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.

  12. techwench
    Member
    Posted 8 years ago #

    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} !^http://techwench.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://techwench.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.techwench.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.techwench.com/.*$ [NC]
    RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ http://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. ;)

  13. techwench
    Member
    Posted 8 years ago #

    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. ;)

  14. Joebar
    Member
    Posted 8 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.