htaccess block IPs while RewriteEngine/modrewrite is enabled solution -

htaccess block IPs while RewriteEngine/modrewrite is enabled solution

Istruggled with this for awhile because the normal setup won't work if modrewrite is being used:

ORDER ALLOW, DENY

So the solution is something like this:


order allow,deny
deny from 12.43.12.0/24
allow from all


  • Vbox/Virtualbox devices grayed out for non-root user solution
  • libguestfs tools howto guide for managing virtual machine images
  • NS_ERROR_FAILURE (0x80004005) The virtual machine 'XP' has terminated unexpectedly during startup with exit code 1.
  • Directadmin compile error solution cc: Internal error: Killed (program cc1)
  • Samsung C410W/CLP410W not printing in Linux solution
  • Samsung Printer Password Login to change settings CLP
  • bash shellshock how to manually patch when there is no update for Centos/Debian/Ubuntu/Fedora
  • How to root and unlock S4 in Canada Bell/Rogers/Telus/Fido I337 4.4.2
  • OpenVZ Howto disable ploop and switch back to SIMFS
  • firefox android text size inconsistent large and small text size solution
  • /usr/libexec/mysqld: The table 'session' is full solution
  • Openvz iptables v1.4.7: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. solution
  • Postfix Errors & Solutions "unprivileged": bad value: "???" - bad transport type:
  • Postfix how to secure outgoing authenticated e-mails for privacy and hide the IP address, mailer and other things
  • Samsung Galaxy Note Upgrade/Update Experience from 4.0.4 with aftermarket ROMs
  • Openvz 2014-08-12T19:05:55-0400 vzctl : CT 391801 : Unable to start init, probably incorrect template 2014-08-12T19:05:55-0400 vzctl : CT 391801 : Container start failed
  • Cannot mount iPhone or iPad in Linux
  • PayPal subscriptions automatically cancelling after creation of profile
  • .htaccess mod_rewrite preserve access to custom query string solution
  • Stop Wordpress new user notification how-to