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:



So the solution is something like this:

order allow,deny
deny from
allow from all

  • unfortunately lg keyboard has stopped - LG Phone Keyboard Issue
  • Location of cPanel apache access logs
  • Windows showing wrong drive size after resizing the VPS/image or cloning howto fix
  • How to manually save bash history
  • Linux how to combine images into a single one using convert from ImageMagick
  • Mysql how to backup/copy row from one table to another
  • mdadm real example of recovery and rebuilding of the array on Centos 6
  • Microsoft Access .mdb files how to view them on Linux Ubuntu/Debian
  • Centos 6 how to guide convert LVM non-RAID into mdadm 1/10 RAID array live without reinstalling
  • Centos cannot login by console or ssh session closed immediately
  • openvz yum problem Centos 6.5 cannot find file on mirror:
  • mount -o bind permanent in /etc/fstab howto
  • Virtualbox errors on Ubuntu/Debian/Mint
  • How To Install Linux Mint 17.2 on mdadm RAID with a separate boot partition
  • Linux sudo config sudoers to run command without a password howto
  • ONVIF Linux Security Camera Setup
  • clamav freshclam out of date won't update solution
  • Installing zoneminder on Ubuntu/Debian Linux Howto
  • status: { DRDY ERR } error: { ICRC ABRT } failed command: WRITE FPDMA QUEUED MCP55 Linux Errors
  • bash script get directory location and path of script howto tutorial