mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Merge pull request #3287 from hnakamur/fix_modsecurity-regression-test-secremoterules.txt_url_in_example
Fix modsecurity-regression-test-secremoterules.txt URL in example
This commit is contained in:
commit
4a720004dd
@ -47,7 +47,7 @@ int main (int argc, char **argv)
|
|||||||
msc_rules_dump(rules);
|
msc_rules_dump(rules);
|
||||||
|
|
||||||
ret = msc_rules_add_remote(rules, "test",
|
ret = msc_rules_add_remote(rules, "test",
|
||||||
"https://www.modsecurity.org/modsecurity-regression-test-secremoterules.txt",
|
"https://raw.githubusercontent.com/owasp-modsecurity/ModSecurity/refs/heads/v3/master/test/modsecurity-regression-rules.txt",
|
||||||
&error);
|
&error);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
fprintf(stderr, "Problems loading the rules --\n");
|
fprintf(stderr, "Problems loading the rules --\n");
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
"SecRemoteRules key https://gist.githubusercontent.com/martinhsv/20705a36b7cfa8ff6d0dee0d4efce7e7/raw/faa96c7838b1fe972c1f0881efacbb440f9a4a5e/modsecurity-regression-rules.txt",
|
"SecRemoteRules key https://raw.githubusercontent.com/owasp-modsecurity/ModSecurity/refs/heads/v3/master/test/modsecurity-regression-rules.txt",
|
||||||
"SecRule ARGS \"@contains somethingelse\" \"id:9,pass,t:trim\""
|
"SecRule ARGS \"@contains somethingelse\" \"id:9,pass,t:trim\""
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
"SecRule REMOTE_ADDR \"@ipMatchFromFile https://gist.githubusercontent.com/martinhsv/20705a36b7cfa8ff6d0dee0d4efce7e7/raw/b9321f190eb0e81b98cb65a56db3d7e0a4f59314/modsecurity-regression-ip-list.txt\" \"id:1,phase:3,pass,t:trim\""
|
"SecRule REMOTE_ADDR \"@ipMatchFromFile https://raw.githubusercontent.com/owasp-modsecurity/ModSecurity/refs/heads/v3/master/test/modsecurity-regression-ip-list.txt\" \"id:1,phase:3,pass,t:trim\""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user