Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author AITpro

    (@aitpro)

    Thread Starter mrppp

    (@mrppp)

    Thanks so in CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE

    Just add

    # BLOCK/FORBID Spammers etc
    Order Allow,Deny
    Deny from 86.138.90.10.
    Allow from all

    plus add more as and when required

    Plugin Author AITpro

    (@aitpro)

    You have added an extra dot after the IP address.
    IP addresses use this format.
    xxx.xxx.xxx.xxx
    There will always be 4 octets in an IP address and each octet is separated with a dot. If you want to block all IP addresses in a range then you would use 3 octets. Deny from 99.88.77. will block all IP addresses from 99.88.77.1 to 99.88.77.256

    Example of adding additional IP addresses

    # BLOCK/FORBID Spammers etc
    Order Allow,Deny
    Deny from 86.138.90.10
    Deny from 99.88.77.
    Deny from 55.44.33.
    Allow from all
    Thread Starter mrppp

    (@mrppp)

    yes sorry that dot was an error
    like so

    # BLOCK/FORBID Spammers etc
    Order Allow,Deny
    Deny from 86.138.90.10
    Allow from all

    Plugin Author AITpro

    (@aitpro)

    Yes, that is correct.

    Thread Starter mrppp

    (@mrppp)

    Appreciate the help

    Thread Starter mrppp

    (@mrppp)

    i have

    # Protect wp-login.php from Brute Force Login Attacks based on Server Protocol
    # All legitimate humans and bots should be using Server Protocol HTTP/1.1
    RewriteCond %{REQUEST_URI} ^/wp-login\.php$
    RewriteCond %{THE_REQUEST} HTTP/1\.0
    RewriteRule ^(.*)$ - [F,L]
    
    # BLOCK/FORBID Spammers etc
    Order Allow,Deny
    Deny from 95.211.156.228
    Deny from 178.162.199.35
    Deny from 178.162.199.78
    Deny from 178.162.199.70
    Deny from 95.211.159.93
    Allow from all

    In place but these ips still show on my stat counter?

    Plugin Author AITpro

    (@aitpro)

    Are the Stats…

    …a WordPress plugin?
    …Google Analytics?
    …a Stats feature in your web host control panel?
    …a 3rd party Stats application?

    Test to make sure your IP address code is working correctly. Add your IP address and see if you are blocked. Use FTP or your Web Host Control Panel to remove your IP address after testing.

    If your IP address is shown in your stat counter then whatever it is [one of the things listed above] it is recording / logging all HTTP Response Status Codes: 200, 403, etc.

    Thread Starter mrppp

    (@mrppp)

    I will check, i,m using http://statcounter.com/ plugin
    If i block myself how can i access the site to remove the code?

    Plugin Author AITpro

    (@aitpro)

    Use FTP or your Web Host Control Panel to remove your IP address after testing.

    Thread Starter mrppp

    (@mrppp)

    you mean manually remove via ftp from the htaccess file?

    Plugin Author AITpro

    (@aitpro)

    Or you can use a Proxy instead like hidemyass.com and block the IP address that the Proxy assigns to you.

    Thread Starter mrppp

    (@mrppp)

    they are all ips owned by Leaseweb, Germany, Netherlands USA etc

    Thread Starter mrppp

    (@mrppp)

    proxy may be better will give it a go later and get back with results thank you

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

The topic ‘IP block’ is closed to new replies.