htaccess block IPs while RewriteEngine/modrewrite is enabled solution -

htaccess block IPs while RewriteEngine/modrewrite is enabled solution

I struggled 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:

<Limit GET HEAD POST>
order allow,deny
deny from 12.43.12.0/24
allow from all
</LIMIT> 


  • forcedeth MCP55 Nforce3600 Nvidia Network NIC Card Not working in Linux at 1gigabit speeds
  • How to Normalize and Increase the Volume on M4A files in Linux
  • DRBD Slow Performance - 99.99 % [jbd2/drbd0-8] highiowait solution
  • Linux how to enable and disable NCQ
  • error code:0xc0000005 windows 2012 datacenter
  • cPanel how to change main IP to fix licensing issue
  • How to completely remove mdadm array
  • mdadm zero-superblock to solve md device created on root device
  • grubby fatal error: unable to find a suitable template solution Centos
  • Linux How To Recover Partition Table from Kernel and Restore Centos/Debian etc..
  • weird mv error mv: inter-device move failed:
  • Apache Log Error Message when starting
  • OpenVZ Migration Hostnode Containers from Centos 5 to Centos 6
  • Linux Mint 17 How to Enable File Sharing Option in File Manager
  • VBOX/Virtualbox how to resize the disk file image vdi
  • OpenVZ Error: Failed to load 2nd level quota solution
  • 99.99 % [jbd2/drbd0-8] highiowait
  • heartbeat cross talk
  • Openvz error solutions Container already locked (error) can't lock quota file, some quota operations are performing for id 1200
  • blocked for more than 120 seconds issues with iowait and timeout on Live Linux distribution while writing to physical disk