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


  • htaccess modrewrite query string to another URL howto
  • bash script how to do wildcard string comparisons or matching
  • bash script test if directory exists
  • bash script check if file exists
  • bash script linux how to do a wildcard string comparison
  • Windows 2012 Server R2 Install Error "windows cannot find the microsoft license terms windows 2012 server install"
  • cPanel how to force reinstall rpms and fix packages and other problems caused by updates or duplicate rpms
  • kvm how to add secondary cdrom drive
  • Dell CS24SC Server Info
  • Dell CS10-F1D Server Info lspci Linux specs
  • Linux Kernel EDAC errors EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
  • Linux disable firmware prevents NIC/Ethernet from working phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
  • VPN Account Buyers Guide and General Info
  • KVM/QEMU how to boot from direct kernel vmlinuz and initrd with networking
  • Flash slowing down your Firefox browser? Install Flashblock plugin
  • Centos scp or sftp program missing solution/what rpm provides them
  • How to install grub on virtio KVM with Linux
  • KVM: unknown exit, hardware reason 0x80000021 kvm_run returned -22 solution
  • 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