• 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.

[GUIDE] Force Direct Link Image Download

stuart

Chevereto Noob
Hi Guys,

I did a bit of research into direct image downloading and while I don't mind people downloading the images I don't want people sending traffic directly to my images as this wastes my bandwidth and I get no advertising revenue!

The solution was to add the following to my .htaccess file within my root directory:

<FilesMatch "\.(jpg|jpeg|png|gif)$" >
ForceType application/octet-stream
Header add Content-Disposition "attachment"
</FilesMatch>

What this does is still allows your local site to embed images but if anyone trys to visit the image directly in /images/imagename.jpg it forces them to download it with a standard download box :)

Problem solved and no script editing required!
 
Back
Top