Site icon WinCert

Accessing author info via REST API is forbidden

<p>I have recently run into a strange issue with my WordPress installation&period; Once I have published an article and tried to access the article link I received the following error&colon;<&sol;p>&NewLine;<h4><strong>Accessing author info via REST API is forbidden&period;<&sol;strong><&sol;h4>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2017&sol;09&sol;wordpress-error&period;png"><img class&equals;"alignnone wp-image-2278 size-full" title&equals;"rest api" src&equals;"https&colon;&sol;&sol;www&period;wincert&period;net&sol;wp-content&sol;uploads&sol;2017&sol;09&sol;wordpress-error&period;png" alt&equals;"rest api" width&equals;"858" height&equals;"163" &sol;><&sol;a><&sol;p>&NewLine;<p>You might also notice blocked URL&&num;8217&semi;s &lpar;500 code&rpar; in Google Search console caused by this error&period; This error happens only if you access this URL as a guest&period;<&sol;p>&NewLine;<p>Upon investigation I have noticed that the cause of this problem is related to WordPress Security plugin &lpar;WP Security&rpar;&period; With the version 4&period;2&period;9 of WP Security&comma; the developer added enumeration block via REST API functionality&period;<&sol;p>&NewLine;<p>This issue is not happening with all of my WordPress articles&period; So far I have noticed it only in one article and can&&num;8217&semi;t find out what is different with this article&period; It could also be a WP Security plugin bug&period;<&sol;p>&NewLine;<p>In order to resolve this issue&comma; you have to disable enumeration block via REST API functionality&period;<&sol;p>&NewLine;<p>Here&&num;8217&semi;s how to do it&colon;<&sol;p>&NewLine;<ul>&NewLine;<li>Open WordPress Administration page<&sol;li>&NewLine;<li>Click on WP Security Plugin<&sol;li>&NewLine;<li>Select Miscellaneous<&sol;li>&NewLine;<li>Click on the Users Enumerations tab<&sol;li>&NewLine;<li>Uncheck the &&num;8220&semi;Disable Users Enumeration&&num;8221&semi; checkbox<&sol;li>&NewLine;<&sol;ul>&NewLine;<p>Disabling Users Enumeration option will stop this error from happening&period; If anyone has a better solution&comma; please post it in the comments below&period;<&sol;p>&NewLine;

Exit mobile version