# Cannot lock images when uploading and updating media

**URL:** <https://www.patreondevelopers.com/t/cannot-lock-images-when-uploading-and-updating-media/2518>\
**Category:** Uncategorized\
**Created:** [December 10, 2019, 5:45pm UTC](https://www.patreondevelopers.com/t/cannot-lock-images-when-uploading-and-updating-media/2518 "2019-12-10T17:45:46Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [December 13, 2019, 6:42pm UTC](https://www.patreondevelopers.com/t/cannot-lock-images-when-uploading-and-updating-media/2518/12 "2019-12-13T18:42:20Z")

</div>

The same rules can be effected in nginx. There is a relevant thread in the forum somewhere. WP Engine for example, allows you to add such rules in the below manner.

> [@Shortcode works, image locking by patron-level not working](https://www.patreondevelopers.com/t/shortcode-works-image-locking-by-patron-level-not-working/374/6):
>
> Can you please try doing what’s described below: In your WPEngine account/site settings, find the section to add url redirects. ‘Edit URL Redirect’ may be its title. If you cant find it, just ask WPEngine support. Then in that interface, enter the following values to relevant fields: Redirect Name: Patreon WordPress Image Protection Domain: All domains Source : ^/wp-content/uploads/((.\*?)(.png|.jpg|.gif|.jpeg|.bmp))$ Destination: index.php?patreon\_action=serve\_patron\_only\_image&patron\_…

The same rules can also be translated into nginx format manually.

---

_[View the full topic](https://www.patreondevelopers.com/t/cannot-lock-images-when-uploading-and-updating-media/2518)._
