WordPress Sicherheit

Wie man eine WordPress-Installation vernünftig härtet, lässt sich bei Mike Kuketz nachlesen:

WordPress Sicherheit:

Absichern einer WordPress-Installation:

Das REST-API (ab WordPress 4.7) lässt sich für nicht eingeloggte Benutzer mit folgendem Eintrag in die Functions File Explained deaktivieren:

// Return an authentication error if a not logged in user tries to access the REST API
add_filter( 'rest_authentication_errors', function( $access ) {
   if( ! is_user_logged_in() ) {
      return new WP_Error( 'rest_API_cannot_access', __( 'Only authenticated users are allowed to access the REST API.', 'disable-json-api' ), array( 'status' => rest_authorization_required_code() ) );
   }
return $access; 
});