How do you stop members from hotlinking images?

Discussion in 'Member and Staff Management' started by Brandon, Jan 22, 2013.

  1. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    What do you do to prevent users from hot linking images to your site.
    I can't stand it as an admin. I want all images posted on my site to be hosted on my servers.
    Otherwise you run the risk of the site vanishing or even being blocked from firewalls or permissions in sites like facebook for example.
    I see this all the time but just noticed it on a support thread I was checking over at xf, one of the images in a post wasn't showing and it turns out it's on a site that's blocked by my firewall. :(
     
  2. GTB

    GTB Regular Member

    Joined:
    Jun 30, 2009
    Messages:
    1,791
    Likes Received:
    270
    I know what you mean, I've never liked it when forum software allows members to link to avatars "off site" using a URL path, with no option to disable it. I'd sooner members upload their own to my forum for obvious reasons, they won't break.

    1.PNG

    phpBB3 allows you to disable remote avatars, which I'm glad about. I do have it disabled and offer a large Gallery choice of avatars to pick from, or they can upload their own. You have the same problem though with IMG tags displaying images in posts from another site.

    You can disable that, force members to upload images in posts. But I don't have it disabled for them. I do have IMG tag disabled for guest though, seeing as they can post on my forum. But that's to avoid them posting those crafty 1px transparent images, you know what I mean!

    2.PNG
     
  3. Alfa1

    Alfa1 Regular Member

    Joined:
    Jul 24, 2009
    Messages:
    303
    Likes Received:
    196
    I had an addon coded that blocks users from posting a variety of unwanted items including offsite images, instruct users what to do (depending on the event) and return them to their post.
     
    Brandon likes this.
  4. AWS

    AWS Administrator

    Joined:
    Feb 1, 2010
    Messages:
    1,616
    Likes Received:
    692
    Location:
    Joliet, IL U.S.A.
    First Name:
    Bob
    I have a script I created that grabs the offsite images that are posted, puts them in a folder and links to them in the posts. It runs via cron a few times a day. It was originally made for vbulletin and I adapted it to IPB.
     
    Brandon likes this.
  5. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    I need one of these magic scripts for xenforo.
     
  6. Jura

    Jura Regular Member

    Joined:
    Oct 25, 2012
    Messages:
    108
    Likes Received:
    18
    I'm not going to stop them if a member finds it easier. I might say something if there's a lot of images being posted or I may remove deleted images, but it's the least of my worries.

    Some sites like or don't mind people hotlinking their images.
     
    Brandon likes this.
  7. AWS

    AWS Administrator

    Joined:
    Feb 1, 2010
    Messages:
    1,616
    Likes Received:
    692
    Location:
    Joliet, IL U.S.A.
    First Name:
    Bob
    The reason I made this was because one of my staff members used to submit a tutorial every few days. He built up the resources section basically by himself. One day he had an argument with an admin and resigned as staff. His second thing to do was remove all his images from PhotoBucket which he used for the tutorial images. It took me 3 weeks to clean up the section because all his tutorial images were dead.

    So now that will never happen again unless the images are removed before cron runs.
     
    Brandon likes this.
  8. Alfa1

    Alfa1 Regular Member

    Joined:
    Jul 24, 2009
    Messages:
    303
    Likes Received:
    196
    Yes, anything hotlinked will die eventually. Its best to have everything within the system.
    I really liked the addon AWS created, but that had the issue that images where not attributed to the author of the post.
     
  9. ProSportsForums

    ProSportsForums Regular Member

    Joined:
    Dec 25, 2012
    Messages:
    529
    Likes Received:
    232
    Location:
    St Petersburg, Florida
    I ban them, shoot them, rape their pets, kick their spouses, and force my children upon them. :D
    OK, I don't. Although it has crossed my mind. I use a script similar to the one AWS mentioned.
     
  10. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    whoa O.o

    acdn.wl.uproxx.com_wp_content_uploads_2012_10_homer_bush_gif.gif
     
  11. carntheroos4eva

    carntheroos4eva Regular Member

    Joined:
    Feb 1, 2010
    Messages:
    298
    Likes Received:
    33
    Ban their email address domain name and their IP address. Then file a report with their ISP.
     
  12. bigbigfan

    bigbigfan Regular Member

    Joined:
    Jan 18, 2013
    Messages:
    61
    Likes Received:
    22
    Hold up, why would you want to stop members from hotlinking images? Some facts:

    - If you hotlink an image your page might rank for that image in Google image search
    - If someone files a DMCA for an image hotlink Google will deny the request, Google hotlinks ALL images too and so they have no problem with it.

    Given those two things I'd say hotlink away! As a webmaster I block hotlinking, I think it's important to do on the webmaster end.
     
  13. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    • If the site disappears, the image is lost
    • If the site is slow, my pages will be slow
    • If the site is blocked by users firewalls, the image won't show
    that's pretty much my reason behind it ;)
     
  14. Jessi

    Jessi Regular Member

    Joined:
    Feb 2, 2012
    Messages:
    240
    Likes Received:
    94
    Oh my. That really sucks. :(

    As for what I do, I actually don't usually care about hotlinking. If I think it's something I want to keep around permanently (like tutorials), then I'll upload and host the images myself, and then edit the post. I don't mind if really old posts end up with some broken images occasionally.
     
  15. bigbigfan

    bigbigfan Regular Member

    Joined:
    Jan 18, 2013
    Messages:
    61
    Likes Received:
    22
    Actually it won't, the items on your domain will load just as quickly. The items on the other domain will be loaded asynchronously, it's called multi-threading and is a big reason why CDNs (content delivery networks) are recommended for images.

    There are good reasons to block image hotlink, including worry that the other site changes the image to something nasty, but I just wanted to point out that there are also benefits, including allowing people to talk about the image.

    I usually find that a site won't mind an image hotlink if they get proper attribution next to it. You can run Xenu linksmith to find broken links or as Jessi pointed out you can quietly save a copy of important images and edit the post to reflect the new location. You'll still need to leave the attribution in place and may need to ask permission but that's normal.
     

Share This Page