Skip to main content

Security

Home Forums WordPress Security

Viewing 0 reply threads
  • Author
    Posts
    • #2487

      Layer7web
      Keymaster
      /**
       * Security measures. Stop login attemps bypassing the login page.
       */
      add_filter('pings_open', '__return_false', PHP_INT_MAX);
      
      // Disable use XML-RPC
      add_filter( 'xmlrpc_enabled', '__return_false' );
      
      // Disable X-Pingback to header
      add_filter( 'wp_headers', 'disable_x_pingback' );
      function disable_x_pingback( $headers ) {
          unset( $headers['X-Pingback'] );
      return $headers;
      }
      • This topic was modified 9 years, 6 months ago by Layer7web.
Viewing 0 reply threads

You must be logged in to reply to this topic.