• Hey Guest, don't forget to VOTE on each RFC topic. Your voting determine Chevereto development! No votes, no development.
  • Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

hotlink protection

JakeSully

👽 Chevereto Freak
💡Describe your suggestion

Add hotlink protection to the script, so when you enable it and some 1 links a direct image to another forum or site. It will replace image with image similar to image not found one but on this one it should say "Hotlinkin is not allowed" and that image is clickable to index of website. This should stop people from hotlinkin when some does not want this.

You can add a switch on and off in admin cp for those who does want it can turn it on and others who does not want it can keep it off.

👏Where did you saw this?

I have seen it one few image hosting sites, it seems useful for some people.

🔥Interest outside our community

Don't have any links yet.
 
You can already do this. Check the root .htaccess file:

Code:
    # 404 images
    # If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
    # Make sure to apply the correct paths to reflect your current installation
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule images/.+\.(gif|jpe?g|png|bmp) - [NC,L,R=404]
    #RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/images/system/default/404.gif [NC,L]

For nginx is pretty much the same, it is all done at server side because the script layer is too slow for controlling this stuff.
 
I mean more like a system that lets you add websites that may view image from elsewhere and a on/off function.

the one you mentioned is when image does not exists then it givesa 404 not found image instead of a page.
 
Everything you are talking about can be made by simply setting server rules. These rules can be for 404 replacement, website whitelist, blacklist, etc. You have dozen of options for it. Just google for "hotlink protection apache" or "hotlink protection nginx".

Real example (https://demo.chevereto.com/images/dadas.jpg):
dadas.jpg


I understand the need of a panel controlling that as edit these rules could be confusing, but there are plenty online generators for it so is not that this is something impossible to achieve or need to make it easier.
 
Back
Top