Title: Wrong IP block method
Last modified: April 25, 2025

---

# Wrong IP block method

 *  Resolved [Marlimant](https://wordpress.org/support/users/marlimant/)
 * (@marlimant)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wrong-ip-block-method/)
 * Hi: When I block an IP, Wordfence writes in file .httaccess a line like:
 *     ```wp-block-code
       deny from 200.27.53.117
       ```
   
 * From Apache 2.4 the nomenclature is different, so in servers like mine, the IPs
   are not being blocked, unless they are written like this:
 *     ```wp-block-code
       <RequireAll>Require all grantedRequire not ip 200.27.53.117
       ```
   
 * How can I indicate Wordfence that my Apache version is 2.4 or above ?

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

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wrong-ip-block-method/#post-18436672)
 * Hi [@marlimant](https://wordpress.org/support/users/marlimant/), thank-you for
   getting in touch.
 * Wordfence hasn’t used .htaccess for IP blocks since a version we estimate to 
   be from around 2016. It’s certainly important to be running 8.0.5 of Wordfence
   and continually update all plugins when new versions become available.
 * If Wordfence is already up-to-date, manually blocking IPs in another product 
   may be causing the changes you’re observing.
 * Peter.
 *  Thread Starter [Marlimant](https://wordpress.org/support/users/marlimant/)
 * (@marlimant)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/wrong-ip-block-method/#post-18436845)
 * Thank you for the reply Peter.
   So the IP blocking in my .htaccess file was created
   from the IP Blocker in my CPanel, IPs that I added manually.You reply was in 
   big help to find out the answer.
 * I’m sorry for the misunderstanding.
    -  This reply was modified 1 year, 1 month ago by [Marlimant](https://wordpress.org/support/users/marlimant/).

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

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

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [apache 2.4](https://wordpress.org/support/topic-tag/apache-2-4/)
 * [block IP](https://wordpress.org/support/topic-tag/block-ip/)
 * [method](https://wordpress.org/support/topic-tag/method/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marlimant](https://wordpress.org/support/users/marlimant/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/wrong-ip-block-method/#post-18436845)
 * Status: resolved