# Automatically disable the public device URL

**URL:** <https://forums.balena.io/t/automatically-disable-the-public-device-url/213056>\
**Category:** Product support\
**Created:** [November 17, 2020, 2:54pm UTC](https://forums.balena.io/t/automatically-disable-the-public-device-url/213056 "2020-11-17T14:54:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteretep](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/peteretep/32/3037_2.png) [@peteretep](https://forums.balena.io/u/peteretep)\
**Post date:** [November 17, 2020, 2:54pm UTC](https://forums.balena.io/t/automatically-disable-the-public-device-url/213056/1 "2020-11-17T14:54:41Z")

</div>

Is there any way to automatically disable the public device URL after a certain amount of time?  
Just in case one of the devices is left open accidentally.

---

<div class="post-metadata">

**Author:** ![srlowe](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/srlowe/32/2638_2.png) [@srlowe](https://forums.balena.io/u/srlowe)\
**Post date:** [November 17, 2020, 4:52pm UTC](https://forums.balena.io/t/automatically-disable-the-public-device-url/213056/4 "2020-11-17T16:52:08Z")

</div>

Hello Peter, Unfortunately there’s no way to enable it temporarily out of the box. You could look into doing this programatically via the SDK:

> **[Balena Node.js SDK - Balena Documentation](https://www.balena.io/docs/reference/sdk/node-sdk/#balena.models.application.enableDeviceUrls)**

  

> **[Balena Node.js SDK - Balena Documentation](https://www.balena.io/docs/reference/sdk/node-sdk/#balena.models.application.disableDeviceUrls)**
