• Resolved brt

    (@brt)


    this RewriteRule is added when Block Spambot Comments is activated:

    #AIOWPS_BLOCK_SPAMBOTS_START
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} ^(.*)?wp-comments-post\.php(.*)$
    RewriteCond %{HTTP_REFERER} !^http(s)?://.*\.example\.com [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule .* https://127.0.0.1 [L]
    </IfModule>
    #AIOWPS_BLOCK_SPAMBOTS_END

    but on a multisite installation with domain mapping every site can have its own domain, those domains are not taken into account with the above rule, so this breaks comments for all those sites.

    a possible solution would be to add all primary domains with comments enabled to the regex like:
    !^http(s)?://.*\.(example\.com|example2.com|example3.com)
    but i am not sure how well this will perform/work with many domains.

    https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/

Viewing 1 replies (of 1 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, there is a new feature added in the plugin Custom Rules that allows you to add your own custom rules. Make sure if you use this feature you also disable the corresponding security feature in the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘posting comments -> 127.0.0.1 on multisite with domain mapping’ is closed to new replies.