Opened 11 years ago
Closed 10 years ago
#34401 closed enhancement (fixed)
Search mechanisms complaning of access denied error on wp-login.php?action=logout
| Reported by: | rodrigosprimo | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Login and Registration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
In one of my sites, Google Webmaster is complaining of access denied errors in thousands of variations of the wp-login.php?action=login URL (with different values for the _wpnonce param).
Those pages are generated by _default_wp_die_handler() and this function doesn't include a noindex robots meta tag in the header. I'm assuming adding such meta tag is the best way to fix this issue. It seems reasonable to me to have noindex on error pages but I'm not sure if this is a good idea since this is not my area of expertise.
I noticed that I'm not the only one having this issue:
https://wordpress.org/support/topic/google-showing-login-access-denied
https://productforums.google.com/forum/#!topic/webmasters/XnOFn2CgGyQ
https://forums.digitalpoint.com/threads/webmaster-url-crawl-error-for-wordpress-wp-login-php-action-logout-_wpnonce.2219262/
Thoughts?
Attachments (2)
Change History (15)
#5
@
10 years ago
- Resolution fixed
- Status closed → reopened
wp_no_robots() isn't defined until wp-includes/general-template.php is loaded. It's possible that a rare scenario in wp_not_installed() causes wp_die() to fire before wp_no_robots() is available, causing a fatal error.
We may need to move wp_no_robots() up a bit or just insert the meta tag manually in this case.
This ticket was mentioned in Slack in #core by jeremyfelt. View the logs.
10 years ago
#8
@
10 years ago
34401.diff adds a function_exists check for wp_no_robots(), similar to what we do for language_attributes(). See #3231.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 37210: