• Wordfence v6.2.2

    I have a site on a cPanel-based hosting provider. My first site lives in /home/username/public_html.. my second and third sites live in /home/username/public_html/second_site and /home/user/public_html/third_site respecitvely. A WordFence scan initiated on my first site ALSO scans second_site and third_site. second_site and third_site are also using WordFence and have their own scans configured.

    Is there a way to configure WordFence on first_site to ignore the directories second_site and third_site?

    Thanks in advance for your assistance.

    Steve

    • This topic was modified 8 years, 5 months ago by TheITJuggler.
Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi @dgoethals
    Please email me a screenshot from your sub-directories structure as you see them in the FTP client for example? and I’ll let you know the correct format you need to enter, you can send the screenshot to this email “alaa [at] wordfence [dot] com”, make sure to mention your forum username in the email subject so I can easily identify it.

    Thanks.

    When I was working for one of my client https://thingsbuyonline.com, I received the same problem.

    As a solution I just excluded all other domains, so it’s my main domain has only this check.

    if($_SERVER['SERVER_NAME']==='www.primarydomain.com') {
            // Before removing this file, please verify the PHP ini setting <code>auto_prepend_file</code> does not point to this.
    
            // This file was the current value of auto_prepend_file during the Wordfence WAF installation (Sun, 15 Oct 2017 11:11:42 +0000)
        if (file_exists('/home2/racker/public_html/wordfence-waf.php')) {
            include_once '/home2/racker/public_html/wordfence-waf.php';
        }
        if (file_exists('/home2/racker/public_html/wp-content/plugins/wordfence/waf/bootstrap.php')) {
            define("WFWAF_LOG_PATH", '/home2/racker/public_html/wp-content/wflogs/');
            include_once '/home2/racker/public_html/wp-content/plugins/wordfence/waf/bootstrap.php';
        }
    }
    • This reply was modified 7 years, 5 months ago by rintoug.
    • This reply was modified 7 years, 5 months ago by rintoug.
Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Exclude directories from scan’ is closed to new replies.