• Hi – I’ve been having an issue with Better WP Security crashing my site. It appears that BWPS is writing to the htaccess file banning an IP, which I can see in the related log with the statement “htaccess: order not allowed here”. When I deactivate the plugin and comment out/remove this portion of htaccess, my site is accessible again.

    From my htaccess file:

    # BEGIN iThemes Security
    #Quick ban IP. Will be updated on next formal rules save.
    SetEnvIF REMOTE_ADDR “^114\.143\.83\.134$” DenyAccess
    SetEnvIF X-FORWARDED-FOR “^114\.143\.83\.134$” DenyAccess
    SetEnvIF X-CLUSTER-CLIENT-IP “^114\.143\.83\.134$” DenyAccess
    order allow,deny
    deny from env=DenyAccess
    deny from 114.143.83.134
    allow from all

    From the error log (URLs removed)

    [Fri Apr 24 09:08:32.598985 2015] [core:alert] [pid 7689] [client 66.249.64.35:61234] /var/www/.htaccess: order not allowed here, referer: http://www.—
    [Fri Apr 24 09:08:35.924271 2015] [core:alert] [pid 7668] [client 116.33.2.37:63990] /var/www/.htaccess: order not allowed here, referer: http://www.—/wp-login.php
    [Fri Apr 24 09:08:36.029724 2015] [core:alert] [pid 7742] [client 116.33.2.37:63998] /var/www/.htaccess: order not allowed here, referer: http://www.—/wp-login.php
    [Fri Apr 24 09:08:37.300177 2015] [core:alert] [pid 7773] [client 108.31.190.49:58515] /var/www/.htaccess: order not allowed here, referer: http://www.—/wp-login.php

    Any idea how I can configure the plugin to protect the site but not crash it?

    Thanks,

    Ryan

    https://ww.wp.xz.cn/plugins/better-wp-security/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Please find out what web server (probably Apache) but more importantly what version of Apache you are using …

    The iTSec plugin only supports Apache up till version 2.2.

    However this could also be an Apache 2.2 configuration issue.
    Let’s first make sure you are not on Apache > 2.2 (like 2.3 or 2.4).

    dwinden

    Thread Starter sfocus

    (@sfocus)

    Thanks for replying, dwinden.

    Turns out we’re running Apache 2.4.7, hosting on DigitalOcean.

    Is there anything we can do to smooth out the seams between Apache and the plugin?

    Thanks again.

    Ryan

    Hi Ryan,

    There is only one way out when using Apache 2.4 …
    Apache 2.4 includes a module named mod_access_compat for backwards compatibility which when loaded would probably fix your issue.

    Question is: is your hosting provider (DigitalOcean) willing to load it ?
    I’ve seen 1 other similar topic in this forum where the hosting provider refused to load the mod_access_compat module in Apache 2.4.

    In that case you are out of options.

    Well you can always switch from hosting provider as a last resort …

    dwinden

    Thread Starter sfocus

    (@sfocus)

    Thank you dwinden for the reply. I’ll see what we can do with adding the module.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘htaccess: order not allowed here’ is closed to new replies.