• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Change embedded hotlinked images to attachments

Brandon Sheley

Well-known member
#1
I've seen mods for other forums that would take any images not hosted on your site, and upload them as an attachment to prevent hotlinking.
Is there a mod for xenforo that does this?

For example if a user uploaded an image to photobucket, I'd like a cron to run that would grab that image, upload it to my forum via attachments and replace the image in the post with the one hosted on my forum.

Thanks
 

Digital Doctor

Well-known member
#4
I have suggested this before.
My suggestion was to use the hotlinked image, but if that expires or is removed, then use the downloaded one.
 

Mouth

Well-known member
#6
I have suggested this before.
My suggestion was to use the hotlinked image, but if that expires or is removed, then use the downloaded one.
Unless the site hosting the image check it's logs and see's requests originating from your site, and you are the 'opposition', so they replace the image with one that denigrates your site or invites everyone to come to their site. Just saying ....... ;)
 

Mouth

Well-known member
#8
Not as clean as an XF integrated solution, but there's a few GPL image uploading scripts around that you could put on your site and tell members to use that instead?
 

topcat

Well-known member
#10
This would be great, I have recently made a request got something similar,

Would be even better if all current images could be uploaded too
 

Biker

Well-known member
#11
You could run into some issues if the image is copyrighted. Linking back to the original image as part of the post is generally acceptable, but downloading it for upload to your server could indeed land you in some hot water.
 

topcat

Well-known member
#12
Usually if sites are bothered they will watermark images. Or disable right click.

Most images are taken from google images anyway

In any case is already possible to upload an image as an attachment, this just makes it easier
 

whyweprotest

Well-known member
#13
I've already asked someone to commission this addon, no quote yet -- but interested to hear who's up for splitting costs. Some conditions: addon is released free and open on xenforo. That's all :)