WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Security Checker
Cloudflare causes a false positive (2 posts)

  1. ScottJWalter
    Member
    Posted 2 years ago #

    If you've connected your site to Cloudflare, run_test_23() will throw a false positive, because the server header returned is 'cloudflare-nqinx', as opposed to 'apache' or 'nqinx' which you're currently looking for.

    This could be fixed by changing the code in run_test_23 (line 858 of securitycheck.class.php) and replacing:

    preg_match("/^(apache|nginx)$/i",$response['headers']['server']) === 0

    with

    preg_match( "/^(apache|nginx|cloudflare\-nginx)$/i", $this->response['headers']['server'] ) === 0

    There may be a better way to do this, but I needed a quick hack.

    http://wordpress.org/extend/plugins/ultimate-security-checker/

  2. bsndev
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks, we'll fix that

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags