Re-enable WP 5.7+ search spam prevention?
-
Hi there,
As of WordPress 5.7, all search results pages include an HTML meta tag to tell robots not to index the results, to help combat reflected search results spamming. You can see the changeset in trac, and the code itself on github.
That functionality is disabled by All-In-One SEO in the
app/Common/Meta/Robots.php
file by thedisableWpRobotsCore()
function, which is added to thewp_head
action in the constructor. As a result, sites with All-In-On SEO enabled will not have that meta tag in search results, and spammy search URLs will still be indexed by Google and others. This can be a big problem for some site owners.It would be wonderful if the default behavior were to leave the stock WordPress functionality in place (that is; to noindex search results) and provide search results indexing as an opt-in function for site owners that want it. You can read some discussion on the feature on this trac ticket.
Thanks in advance for your consideration!
- The topic ‘Re-enable WP 5.7+ search spam prevention?’ is closed to new replies.