# Is there an API command to disable ad blocking?

**URL:** <https://discourse.pi-hole.net/t/is-there-an-api-command-to-disable-ad-blocking/7693>\
**Category:** FAQs\
**Created:** [March 3, 2018, 12:24am UTC](https://discourse.pi-hole.net/t/is-there-an-api-command-to-disable-ad-blocking/7693 "2018-03-03T00:24:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [March 3, 2018, 12:33am UTC](https://discourse.pi-hole.net/t/is-there-an-api-command-to-disable-ad-blocking/7693/2 "2018-03-03T00:33:28Z")

</div>

There is no way to do it without authentication. You will need to have this as your bookmark:  
[http://pi.hole/admin/api.php?disable&auth=PWHASH](http://pi.hole/admin/api.php?disable&auth=PWHASH)

Where `PWHASH` is the value of `WEBPASSWORD` in `/etc/pihole/setupVars.conf`  
You can also replace `disable` with `enable` to enable Pi-hole.

---

_[View the full topic](https://discourse.pi-hole.net/t/is-there-an-api-command-to-disable-ad-blocking/7693)._
