mirror of
https://github.com/pi-hole/web.git
synced 2026-03-03 16:09:04 +00:00
cb32c5572acce1d4e1b63d7ba36ca04fb6b2aa04
Previously had been checking Origin AND Host header, but we should not check Host header... Removed Host check and only check if Origin header is set, because otherwise CORS doesn't apply (could be a same-origin request).
Pi-hole Admin Dashboard
Using AdminLTE, this project will create a Web interface for the ad-blocking Pi-hole: a black hole for Internet advertisements.
From this interface, you will be able to see stats on how well your Pi-hole is performing. You will also be able to update the lists used to block ads.
API
A read-only API can be accessed at /admin/api.php. With either no parameters or api.php?summary it returns the following JSON:
{
"domains_being_blocked": "136,708",
"dns_queries_today": "18,108",
"ads_blocked_today": "14,648",
"ads_percentage_today": "80.9"
}
There are many more parameters, such as summaryRaw, overTimeData, topItems, recentItems, getQueryTypes, getForwardDestinations, getQuerySources, and finally getAllQueries.
Languages
JavaScript
52.9%
CSS
47.1%


