Localhost/admin 403 Forbidden

The issue I am facing:
After updating pi-hole to the latest version I can not reach admin dashboard. I get a 403 Forbidden message.

curl -I http://localhost/admin/

HTTP/1.1 302 Found

Expires: Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control: no-store, no-cache, must-revalidate

Pragma: no-cache

Set-Cookie: PHPSESSID=9j3thlrb1ju7l249q3u7drtq4j; path=/; HttpOnly; SameSite=Strict

Location: login.php

Content-type: text/html; charset=UTF-8

X-Pi-hole: The Pi-hole Web interface is working!

X-Frame-Options: DENY

X-XSS-Protection: 0

X-Content-Type-Options: nosniff

Content-Security-Policy: default-src 'self' 'unsafe-inline';

X-Permitted-Cross-Domain-Policies: none

Referrer-Policy: same-origin

Date: Thu, 09 Feb 2023 20:30:19 GMT

Server: lighttpd/1.4.59

Details about my system:
Debian latest version
https://tricorder.pi-hole.net/dO5naUO3/

What I have changed since installing Pi-hole:

The text you have posted shows a 302 Found response, not a 403 Forbidden, like you said.

And your debug log shows the web interface is working:

*** [ DIAGNOSING ]: Dashboard headers
[✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!

Although I can not access localhost/admin on neither of my pcs on my local net.

Did you try xxx.xxx.xxx.xxx/admin instead of localhost/admin?

You may just want to uninstall/purge pi-hole and reinstall. Will probably fix itself.

Hello, I have the same problem after updating.

Which URL are you using to access from the browser?

Hello.

[

Pi-hole
pi.hole

apple-touch-icon.png

](http://pi.hole/admin)

lets me in, while if I try to access 192.168.50.41/admin it shows the same error. maybe its a resolution error?

Hi and thanks
you had to enter the entire url admin/index.php

thanks

There is no DNS resolution when accessing via IP.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.