# Disable Jenkins UI

**URL:** <https://community.jenkins.io/t/disable-jenkins-ui/16166>\
**Category:** Using Jenkins\
**Created:** [June 20, 2024, 12:56pm UTC](https://community.jenkins.io/t/disable-jenkins-ui/16166 "2024-06-20T12:56:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwalasz](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mwalasz](https://community.jenkins.io/u/mwalasz)\
**Post date:** [June 20, 2024, 12:56pm UTC](https://community.jenkins.io/t/disable-jenkins-ui/16166/1 "2024-06-20T12:56:47Z")

</div>

Hi all,

I’m using Jenkins in docker.  
I have a question about Jenkins UI page. Is there any possibility to disable/block somehow UI page and use only on API calls to execute build etc.? Or even better to redirect API to some port and use that port to communicate with Jenkins. What I’m see know is that Jenkins use the same port (8080) to API and UI.

Thanks!

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [June 20, 2024, 10:18pm UTC](https://community.jenkins.io/t/disable-jenkins-ui/16166/2 "2024-06-20T22:18:57Z")

</div>

that is not possible.

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [June 20, 2024, 10:24pm UTC](https://community.jenkins.io/t/disable-jenkins-ui/16166/3 "2024-06-20T22:24:14Z")

</div>

The closest you get to a Jenkins without UI is to use the [Jenkinsfile Runner](https://github.com/jenkinsci/jenkinsfile-runner) to run a single Jenkinsfile.

---

<div class="post-metadata">

**Author:** ![mwalasz](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mwalasz](https://community.jenkins.io/u/mwalasz)\
**Post date:** [June 21, 2024, 6:26am UTC](https://community.jenkins.io/t/disable-jenkins-ui/16166/4 "2024-06-21T06:26:55Z")

</div>

Maybe there is any way to block/redirect UI requests and stay API unlocked. I’m using linux.

---

<div class="post-metadata">

**Author:** ![avmane](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@avmane](https://community.jenkins.io/u/avmane)\
**Post date:** [June 24, 2024, 9:56am UTC](https://community.jenkins.io/t/disable-jenkins-ui/16166/5 "2024-06-24T09:56:55Z")

</div>

@mwalasz Via using the firewall rules, based on the type of request you can disable/block the UI. I am just guessing it…
