/wp-login.php returns a 403 Forbidden error. I also see the WordPress admin toolbar and the logged-in username in the public page source, even when testing in a private browser window.
Other Information
I cleared the W3 Total Cache plugin cache and tested with page caching disabled, but the issue persists.
Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
What exactly does the 403 page say when you open /wp-login.php? Please paste the text, or tell me whether it’s a plain “Forbidden” page, a WordPress page, or an InfinityFree-branded one. Does the same 403 show up on /wp-admin/ or on other .php files on the site? That tells me whether it’s a rule aimed at the login file or something that affects the whole folder.
The knowledge base article on 403 errors lists the usual causes: files in the wrong folder, a missing index file, blocked keywords in the URL, and deny from lines in .htaccess. Which one applies depends on the answers above.
An article on 403 errors on our hosting:
The admin toolbar in the page source for logged-out visitors is a separate symptom. In general, that happens when a page generated for a logged-in user gets saved and then served to everyone. Could you view the source of the homepage in a private window and look at the very end of the HTML? Caching plugins like W3 Total Cache usually add a comment there saying the page was cached and how. If you find one, paste it here. I couldn’t find an article or topic on our forum covering this symptom, so that comment is the best lead I have.
The error page is the InfinityFree 403 Forbidden page, showing: “Server or website configuration is blocking you from viewing this page.”
The URL https://blog.paolasolarinsights.com/wp-login.php returns this error. The URL /wp-admin/ previously displayed the WordPress login screen.
The public homepage source contains logged-in admin-bar and the username paola_editor26, even when accessed in a private browsing window without logging in.
I have cleared W3 Total Cache and tested with page caching disabled, but the issue persists.
Could you please investigate the 403 error and help determine why the public homepage HTML contains the WordPress admin toolbar?
I need to preserve my existing WordPress posts, media files, domain configuration, and SEO indexing.
If you see the admin toolbars on your login page, that usually means that you’re already logged in as an admin while viewing your website. Is it possible that you are already logged in? And are you sure that you’re actually getting the 403 error on the wp-login.php page, not on WordPress admin area itself?