• Resolved swordcobra

    (@swordcobra)


    If I activate the blacklist with an IP-Range than I get an 500 Server massage.
    It doesn’t matter which IP I put there.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @swordcobra

    Can you please let me know that IP range which creates issue there and gets 500 server error ?

    Regards

    Thread Starter swordcobra

    (@swordcobra)

    Excample 185.182.56.* or 167.172.191.*
    The problem occurs with any IP addresses.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @swordcobra

    I tried apply both ip address in one of my live sites it works fine there.

    I would consider it seems some thing different issue.

    https://ibb.co/Tb2qsFz

    It seems issue from .htaccess you may cross check and if mod_authos_core not installed use first other wise second and you may check what exact is making issue and let me know.

    #AIOWPS_IP_BLACKLIST_START
    <IfModule !mod_authz_core.c>
    Order allow,deny
    Allow from all
    Deny from 167.172.191.0/24
    Deny from 185.182.56.0/24
    </IfModule>
    <IfModule mod_authz_core.c>
    <RequireAll>
    Require all granted
    Require not ip 167.172.191.0/24
    Require not ip 185.182.56.0/24
    </RequireAll>
    </IfModule>
    #AIOWPS_IP_BLACKLIST_END
    Thread Starter swordcobra

    (@swordcobra)

    When I add the IP addresses via the plugin and open the file, I see the following lines in the file.
    Apparently adding the tags doesn’t work properly. What can be the reason?

    #AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_END
    #AIOWPS_DISABLE_INDEX_VIEWS_START
    Options -Indexes
    #AIOWPS_DISABLE_INDEX_VIEWS_END
    #AIOWPS_IP_BLACKLIST_START
    deny 167.172.191.0/24;
    deny 185.182.56.0/24;
    #AIOWPS_IP_BLACKLIST_END
    #AIOWPS_DISABLE_TRACE_TRACK_START
    Thread Starter swordcobra

    (@swordcobra)

    
    # BEGIN All In One WP Security
    #AIOWPS_BLOCK_WP_FILE_ACCESS_START
    <Files license.txt>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    <Files wp-config-sample.php>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    <Files readme.html>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    #AIOWPS_BLOCK_WP_FILE_ACCESS_END
    #AIOWPS_BASIC_HTACCESS_RULES_START
    <Files .htaccess>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    ServerSignature Off
    LimitRequestBody 10485760
    <Files wp-config.php>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    #AIOWPS_BASIC_HTACCESS_RULES_END
    #AIOWPS_PINGBACK_HTACCESS_RULES_START
    <Files xmlrpc.php>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    #AIOWPS_PINGBACK_HTACCESS_RULES_END
    #AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_START
    <Files debug.log>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>
    #AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_END
    #AIOWPS_DISABLE_INDEX_VIEWS_START
    Options -Indexes
    #AIOWPS_DISABLE_INDEX_VIEWS_END
    #AIOWPS_IP_BLACKLIST_START
    deny 167.172.191.0/24;
    deny 185.182.56.0/24;
    #AIOWPS_IP_BLACKLIST_END
    #AIOWPS_DISABLE_TRACE_TRACK_START
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    #AIOWPS_DISABLE_TRACE_TRACK_END
    #AIOWPS_FORBID_PROXY_COMMENTS_START
    <IfModule mod_rewrite.c>

    More details to htaccess?

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @swordcobra

    What server being used there It seems nginx.

    If it is nginx it do not support the htaccess so it seems the issue.

    You may add in the nginx.conf directly the IP address to block.

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Blocking IP range using Blacklist nor working’ is closed to new replies.