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> 


  • 2CO/2Checkout Howto Enable IPN/Notification Setup & Script Info
  • 2CO/2Checkout how to create recurring payment subscription button dynamically
  • Thunderbird Error An error occurred while loading or saving configuration information for thunderbird. Some of your configuration settings may not work properly.
  • CPanel Link to all of the command line options
  • PayPal Convert BuyNow Button to Plain HTML Link
  • OpenVZ Unable to stop container
  • Sipura/Linksys VOIP Adapter How to Check your IP Address
  • Ubuntu Linux Slow/Delayed SSH ping response Solution
  • Webalizer Error "Error: Unable to restore run data (10)" no longer updating
  • phpBB guests unable to view forums without logging in Anonymous account solution
  • phpBB create new email hash manually when modifying or adding user manually directly through MySQL
  • cp ignore symlink and copy the actual file
  • iptables how to forward port to another IP address with DNAT
  • SolusVM error error: Failed to create domain from /home/kvm/kvm101/kvm101.xml error: cannot open file '/dev//dev/kvmcontainer/kvm101_img': No such file or directory
  • drbd 8.3 hard drive failure recovery example
  • mytop install errors
  • Argument list too long solution - rm -rf new/* -bash: /bin/rm: Argument list too long
  • Windows 2008 Server Trial How To Activate & Extend the Trial
  • The Best NoSQL Solution
  • mysql how to kill individual process/query