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

Limit image (hot-linking) bandwidth on Nginx server

mkerala

👽 Chevereto Freak
If you are looking to control bandwidth usage by images uploaded to your website, this can be implemented by editing Nginx config.

The below code limits bandwidth after loading first 5MB at full speed then speed limited to 500KB/s per request. So smaller images load faster while bigger images loads little slower especially when hot-linking.

Code:
location ^~ /images/
    {
    limit_rate_after 5m;
    limit_rate 500k;
    log_not_found off;
    error_page 404 /content/images/system/default/404.gif;
    }
 
Back
Top