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> 


  • Openvz iptables v1.4.7: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. solution
  • Postfix Errors & Solutions "unprivileged": bad value: "???" - bad transport type:
  • Postfix how to secure outgoing authenticated e-mails for privacy and hide the IP address, mailer and other things
  • Samsung Galaxy Note Upgrade/Update Experience from 4.0.4 with aftermarket ROMs
  • Openvz 2014-08-12T19:05:55-0400 vzctl : CT 391801 : Unable to start init, probably incorrect template 2014-08-12T19:05:55-0400 vzctl : CT 391801 : Container start failed
  • Cannot mount iPhone or iPad in Linux
  • PayPal subscriptions automatically cancelling after creation of profile
  • .htaccess mod_rewrite preserve access to custom query string solution
  • Stop Wordpress new user notification how-to
  • 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