Exclude an IP adress

  • Hello


    I have a lot of guest on the forum

    46.229.168. from 131 to 153


    I have a htaccess with a deny for all this IP


    I exclude all the Ip in the forum in ACP sécurity


    and now if i look in member i have this


    41 guess with the adress IP deny in htaccess and in security



    An idea ?

    • Official Post

    Blocking them in the ACP will prevent them from accessing anything, but they still see the site and in return yield an user session. It is highly recommended to block them using the webserver, which will also prevent the request from hitting PHP at all.


    You should search for apache block ip range or apache block ip to find proper instructions, there are countless of examples out there :)

  • thanks


    this is my htaccess , it is in the public_html


    RewriteEngine On

    RewriteCond %{HTTPS} off

    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]


    Order Deny,Allow


    Deny from 213.251.182.103

    Deny from 144.217.72.140

    Deny from 46.229.168.129

    Deny from 46.229.168.130

    Deny from 46.229.168.131

    Deny from 46.229.168.132

    Deny from 46.229.168.133

    Deny from 46.229.168.134

    Deny from 46.229.168.135

    Deny from 46.229.168.136

    Deny from 46.229.168.137

    Deny from 46.229.168.138

    Deny from 46.229.168.139

    Deny from 46.229.168.140

    Deny from 46.229.168.141

    Deny from 46.229.168.142

    Deny from 46.229.168.143

    Deny from 46.229.168.144

    Deny from 46.229.168.145

    Deny from 46.229.168.146

    Deny from 46.229.168.147

    Deny from 46.229.168.148

    Deny from 46.229.168.149

    Deny from 46.229.168.150

    Deny from 46.229.168.151

    Deny from 46.229.168.152

    Deny from 46.229.168.153



    Allow from all


    and i see the try to connect in guest

  • RewriteEngine On

    RewriteCond %{HTTPS} off

    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]




    order allow,deny

    deny from 46.229.168.

    deny from 213.251.182.103

    allow from all


    this work for me

    • Official Post
    SQL
    UPDATE wcf1_option SET optionValue = '1' WHERE optionName = 'users_online_record';

    Afterwards you'll need to save the options in the ACP, it will refresh the options cache and show the new value. You can alter the 1 to read any other value that you feel looks reasonable.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!