doc:appunti:linux:sa:apache_modsecurity2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:apache_modsecurity2 [2025/07/16 17:40] – [Apache ModSecurity 2] niccolo | doc:appunti:linux:sa:apache_modsecurity2 [2025/07/16 18:26] (current) – [Definizione delle regole] niccolo | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| # Track requests to some php pages. | # Track requests to some php pages. | ||
| - | SecRule REQUEST_URI " | + | SecRule REQUEST_URI " |
| - | | + | SecRule REQUEST_URI " |
| - | SecRule REQUEST_URI " | + | |
| - | | + | |
| # Threshold: one request every 3 seconds (60 req / 180 s). | # Threshold: one request every 3 seconds (60 req / 180 s). | ||
| - | SecRule IP: | + | SecRule IP: |
| - | | + | SecRule IP: |
| - | | + | |
| - | SecRule IP: | + | |
| - | | + | |
| - | | + | |
| # Reset the counter using a rolling window. | # Reset the counter using a rolling window. | ||
| SecAction " | SecAction " | ||
| Line 39: | Line 33: | ||
| SecRule IP:BLOCKED "@eq 1" " | SecRule IP:BLOCKED "@eq 1" " | ||
| </ | </ | ||
| + | |||
| + | ===== Definizione delle regole ===== | ||
| + | |||
| + | La prima **SecRule** definita valuta la variabile **REQUEST_URI**, | ||
| + | |||
| + | **ATTENZIONE**: | ||
| + | |||
| + | Collegata alla regola precedente vi è un' | ||
| + | |||
| + | FIXME | ||
| Quando si cambia il file di configurazione è sufficiente fare il reload di Apache: | Quando si cambia il file di configurazione è sufficiente fare il reload di Apache: | ||
doc/appunti/linux/sa/apache_modsecurity2.1752680427.txt.gz · Last modified: by niccolo
