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

  • bash scripting for loop set number of iterations
  • linux bash mass rename tool Centos/Debian/Ubuntu
  • Cannot get mono to work properly on Linux Mint
  • CPanel SNI error
  • Bing/Microsoft Ads causing problems for ad tracking and site loading
  • imagemagick converting jpg images to pdf file size too large
  • convert imagemagick pdf to jpg is too small when converting solution
  • How To Record Your Screen with Linux
  • Virtualbox Error
  • How to get/display full path to file in Linux/Unix
  • kernel:[14277.697049] EDAC MC0: UE row 4, channel-a= 0 channel-b= 1 labels "-": (Branch=0 DRAM-Bank=0 RDWR=Read RAS=7048 CAS=0 FATAL Err=0x4 (>Tmid Thermal event with intelligent throttling disabled))
  • CPanel Cannot Login HTTP error 401 You do not have permission to access this page.
  • Failed to open a session for the virtual machine XPCB. Implementation of the USB 2.0 controller not found! Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle V
  • OpenVZ how to enable FUSE in the container
  • How to manually mount Linux disk image partition without using losetup
  • Debian 8 Jessie in Linux OpenVZ Container does not work on Centos host
  • bash script Get Model and Serial Number of All Hard Disks in Server on Linux
  • How to scp transfer a file in Linux with spaces
  • unfortunately lg keyboard has stopped - LG Phone Keyboard Issue
  • Location of cPanel apache access logs