Title: IP block
Last modified: August 21, 2016

---

# IP block

 *  Resolved [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ip-block-1/)
 * how can i block an ip address in BPS
 * [http://wordpress.org/plugins/bulletproof-security/](http://wordpress.org/plugins/bulletproof-security/)

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4266977)
 * You can add IP blocking .htaccess code to BPS Custom Code. [http://forum.ait-pro.com/forums/topic/htaccess-block-ip-address-block-access-to-files-by-ip-address/](http://forum.ait-pro.com/forums/topic/htaccess-block-ip-address-block-access-to-files-by-ip-address/)
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4266982)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4266984)
 * 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](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4266987)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4266988)
 * Yes, that is correct.
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4266989)
 * Appreciate the help
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267120)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267121)
 * 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](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267122)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267123)
 * Use FTP or your Web Host Control Panel to remove your IP address after testing.
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267124)
 * you mean manually remove via ftp from the htaccess file?
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267125)
 * Or you can use a Proxy instead like hidemyass.com and block the IP address that
   the Proxy assigns to you.
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267126)
 * they are all ips owned by Leaseweb, Germany, Netherlands USA etc
 *  Thread Starter [mrppp](https://wordpress.org/support/users/mrppp/)
 * (@mrppp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267127)
 * 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.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 14 replies
 * 2 participants
 * Last reply from: [mrppp](https://wordpress.org/support/users/mrppp/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/ip-block-1/#post-4267127)
 * Status: resolved