Title: htaccess vs wp function
Last modified: May 26, 2017

---

# htaccess vs wp function

 *  Resolved [doug wilson](https://wordpress.org/support/users/dgswilson/)
 * (@dgswilson)
 * [9 years ago](https://wordpress.org/support/topic/htaccess-vs-wp-function/)
 * which is faster? If I get a repeat offending range (usually a web host or business)
   I’d normally use a deny from in htaccess. I started wondering about the load 
   difference
 * Usually avoiding php is best… Just wondering

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

 *  Plugin Contributor [loginizer](https://wordpress.org/support/users/loginizer/)
 * (@loginizer)
 * [9 years ago](https://wordpress.org/support/topic/htaccess-vs-wp-function/#post-9174187)
 * Hi,
 * Yes, if you add it in htaccess, the request doesnt reach PHP and its a little
   faster to block.
    But then you will need to manually add to htaccess always.
 * Regards
 *  Thread Starter [doug wilson](https://wordpress.org/support/users/dgswilson/)
 * (@dgswilson)
 * [9 years ago](https://wordpress.org/support/topic/htaccess-vs-wp-function/#post-9176920)
 * For sure I don’t like blocking IP’s. Thanks for response

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

The topic ‘htaccess vs wp function’ is closed to new replies.

 * ![](https://ps.w.org/loginizer/assets/icon-256x256.png?rev=1381093)
 * [Loginizer](https://wordpress.org/plugins/loginizer/)
 * [Support Threads](https://wordpress.org/support/plugin/loginizer/)
 * [Active Topics](https://wordpress.org/support/plugin/loginizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loginizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loginizer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [doug wilson](https://wordpress.org/support/users/dgswilson/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/htaccess-vs-wp-function/#post-9176920)
 * Status: resolved