News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Allow Upload of Image but Restrict Download

Started by hectorbryan, July 31, 2015, 04:53:40 AM

Previous topic - Next topic

hectorbryan

Hi,
How do I set the following:

* Allow user to attach image / pictures in a comment. Attached picture will automatically display along the comment not thumbnail.
* Restrict downloading of the image (remove download button and disallow right click save-as)

Thank you.

Illori

are you using attachments? then this is not possible. anyway if they are just images if you let them see the full image they can always find a way to download it just from it being sent to their browser.

margarett

To add a bit to Illori's reply:
Both inline attachments MODs (this is what allows you to post your attachments easily inline with your posts) that I know of:
http://custom.simplemachines.org/mods/index.php?mod=3770
https://github.com/Spuds/SMF-ILA

Have (or had, it's been some time...) the possibility to hide the attached images from the "list" below the post itself as soon as it is displayed inline in the post.
But as Illori said, after the image is displayed (meaning, it's delivered to the browser) you can't really prevent it from being obtained...
You can use this
http://custom.simplemachines.org/mods/index.php?mod=1175
But the member can just disable JavaScript and get along with it.
Or the member can get the page source code, get the image URL and get it the same way.
Or the member (if he really wants to) can get it from the browser cache
Etc, etc...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: