• Resolved rez009

    (@rez009)


    No blocks ever show on the blocking tab of the firewall. Doesn’t matter if I see something get blocked in Live Traffic view — it simply never appears on the Blocking tab. This happens across 12 different sites, so it’s not specific to just one installation of WF. I have WF set to block for 2 months if they break a rule, so it’s not that they’ve already been unblocked. It’s not theme related, either, as WF does work on some of my sites which use the same theme as those where I’m not seeing any blocks active. As far as I can tell, there is nothing in my settings that should keep things from appearing on the Blocking tab.

    Any ideas?

    ps — I’ve tried breaking rules from a different ip address to see if that ip will show up on the blocking tab, but it never does.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @rez009,

    Are you able to reproduce this by blocking yourself out using a private browser, incognito mode, or VPN?

    Are these sites on the same server?

    Do the sites that this is happening to share any similar plugins?

    Please let me know.

    Thanks,

    Gerroald

    Thread Starter rez009

    (@rez009)

    Hey Gerroald,

    Thanks for the reply. I may have found a fix, but not sure as I haven’t tested it completely across all the sites. I exported the settings from one of the sites that is working to one that wasn’t, and then also made a slight change to my htaccess file, and one of those two things did the trick. I’ll report back with further updates if I can narrow down which is the actual fix. Prior to testing them all tho, see answers to your questions below:

    I can easily block myself out using any method you suggested, but still nothing appears on the Blocking tab.

    All the sites are on the same server (both the ones that work, and the ones that don’t).

    All the sites (both working and non) share similar plugins. There is nothing specific to the ones that are not working that seems to make any difference.

    Thanks again for your time and thoughts.

    Hey @rez009,

    Thanks for the update.

    Please do let us know how it goes, and if you’re able to track down the exact fix as it might be helpful for others.

    Thanks,

    Gerroald

    Thread Starter rez009

    (@rez009)

    Alright, I believe I tracked down the main issue, and it was in the .htaccess file. On one of the sites that always worked, there was a section in the .htaccess file that looked like this:

    <FilesMatch “^(xmlrpc\.php)”>
    Require all granted
    Allow from xxx.xxx.xx.xxx # me
    Allow from xx.xx.xxx.xxx # server
    </FilesMatch>

    Then, on all the ones that didn’t work (same server), the same block looked like this:

    <FilesMatch “^(wp-login\.php|xmlrpc\.php)”>
    Order deny,allow
    Deny from all
    Allow from xxx.xxx.xx.xxx # me
    Allow from xx.xx.xxx.xxx # server
    </FilesMatch>

    While they’re pretty similar in the way they allow/deny access, the major difference was that on all the sites that weren’t working, I was also blocking access to wp-login.php. For whatever reason that was “breaking” the blocking tab.

    Removing the ” wp-login\.php| ” bit from the FilesMatch rule made them all start working as expected again.

    No real solid clue as to why this would have such an impact on how WF writes to the blocking tab, but hopefully if anyone else runs across this issue, this will help narrow down possible causes.

    • This reply was modified 6 years, 1 month ago by rez009.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Blocking tab not working’ is closed to new replies.