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


  • Linux bash how to list files of a certain date with the statu command for scripting
  • cPanel How to set SSL and Dedicated IP in cPanel
  • OpenVZ vzctl update changes how iptables work - iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. updated solution
  • Wordpress Plugin manual install how-to
  • Disable linux baxh proxy ENV export variable
  • Linux bash read exif data tags from image jpeg/tiff/jpg
  • PHP Issues with Joomla Strict Standards: Non-static method JLoader::import() should not be called statically
  • esniper and curl errors https://signin.ebay.com/ws/eBayISAPI.dll?SignIn: Couldn't connect to server: couldn't connect to host
  • Disable cphulk in CPanel if you can't login even with the right password
  • bash increment how to
  • Centos automatic ifcfg-eth0 scripts based on list of IPs from bash
  • 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