Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
more apache/php
#36

It *is* possible to add a rule to whitelist an IP - I did it once - but it then defeated my testing, since my rule meant everything worked for me but *only* me.

 

If you find that mod_security is breaking some sites, the logfiles should give you an indication of what it's blocking - it does tend to be somewhat paranoid about code, and in some ways has raised awareness of "defensive programming/secure coding" amongst plenty of developers unaware of just how exploitable their code was.

 

For all of my sites, I first flicked mod_security off to ensure it all worked fine without any filtering, then flicked it on and kept checking the logfiles to see what it stamped down upon. Sometimes, the changes I had to make were fairly simple (wrong permissions, owner, etc), but in other cases required upgrading web-based applications to the newer one which was mod_sec compliant.[1]

 

[1] a few websites give workarounds showing how to disable and/or whitelist specific modsec functionality for their apps whilst they worked upon the next version that included more robust code which wouldn't trigger modsec false positives.

 

It's still a learning curve, ultimately. I wouldn't get too bogged down upon what the rulesets actually are (nor about trying to write them), it is safer to check that website code (drupal, etc) works with mod_sec and investigate the reasons why not. Usually the reasons are something of concern and DO needs to be addressed.

Reply


Messages In This Thread
more apache/php - by inittux - 2011-09-06, 06:25 AM
more apache/php - by Dungeon-Dave - 2011-09-07, 07:14 AM
more apache/php - by inittux - 2011-09-09, 06:17 AM
more apache/php - by inittux - 2011-09-10, 03:43 PM
more apache/php - by Dungeon-Dave - 2011-09-11, 01:40 PM
more apache/php - by inittux - 2011-09-11, 01:54 PM
more apache/php - by Dungeon-Dave - 2011-09-11, 03:49 PM
more apache/php - by inittux - 2011-09-11, 03:58 PM
more apache/php - by Dungeon-Dave - 2011-09-11, 05:12 PM
more apache/php - by inittux - 2011-09-12, 06:09 AM
more apache/php - by Dungeon-Dave - 2011-09-12, 12:30 PM
more apache/php - by inittux - 2011-09-13, 06:12 AM
more apache/php - by inittux - 2011-09-13, 08:47 AM
more apache/php - by Dungeon-Dave - 2011-09-13, 10:58 AM
more apache/php - by inittux - 2011-09-13, 11:43 AM
more apache/php - by inittux - 2011-09-14, 07:02 AM
more apache/php - by Dungeon-Dave - 2011-09-14, 10:49 AM
more apache/php - by inittux - 2011-09-14, 05:40 PM
more apache/php - by inittux - 2011-09-14, 07:27 PM
more apache/php - by Dungeon-Dave - 2011-09-14, 07:28 PM
more apache/php - by inittux - 2011-09-14, 07:33 PM
more apache/php - by inittux - 2011-09-15, 05:08 AM
more apache/php - by inittux - 2011-09-18, 06:40 PM
more apache/php - by Dungeon-Dave - 2011-09-19, 05:44 PM
more apache/php - by inittux - 2011-09-19, 05:50 PM
more apache/php - by inittux - 2011-09-20, 04:57 PM
more apache/php - by Dungeon-Dave - 2011-09-21, 07:42 PM
more apache/php - by inittux - 2011-09-22, 02:39 PM
more apache/php - by inittux - 2011-09-22, 05:12 PM
more apache/php - by inittux - 2011-10-06, 10:43 AM
more apache/php - by Dungeon-Dave - 2011-10-07, 02:21 PM
more apache/php - by inittux - 2011-10-08, 07:11 AM
more apache/php - by Dungeon-Dave - 2011-10-08, 01:00 PM
more apache/php - by inittux - 2011-10-08, 01:06 PM
more apache/php - by inittux - 2011-10-11, 07:42 AM
more apache/php - by Dungeon-Dave - 2011-10-11, 01:33 PM
more apache/php - by inittux - 2011-10-12, 10:34 AM
more apache/php - by Dungeon-Dave - 2011-10-13, 11:41 AM
more apache/php - by inittux - 2011-10-13, 11:46 AM
more apache/php - by Dungeon-Dave - 2011-10-13, 04:47 PM
more apache/php - by inittux - 2011-11-01, 03:11 PM
more apache/php - by inittux - 2011-11-28, 09:56 PM
more apache/php - by hybrid - 2011-11-29, 10:48 AM
more apache/php - by inittux - 2011-11-29, 11:17 AM
more apache/php - by hybrid - 2011-11-29, 11:21 AM
more apache/php - by inittux - 2011-11-29, 11:34 AM
more apache/php - by hybrid - 2011-11-29, 11:40 AM
more apache/php - by Dungeon-Dave - 2011-11-29, 02:43 PM
more apache/php - by inittux - 2011-11-29, 02:51 PM
more apache/php - by Dungeon-Dave - 2011-11-29, 03:14 PM
more apache/php - by inittux - 2011-12-14, 11:07 AM
more apache/php - by Dungeon-Dave - 2011-12-14, 10:06 PM
more apache/php - by inittux - 2011-12-14, 10:17 PM
more apache/php - by Dungeon-Dave - 2011-12-15, 01:58 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)