We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need C wrappers in order to connect with other programs like Nginx and Apache.
We are going to copy the functions used by modsecurity but replacing msc_ with coraza_.
msc_
coraza_
A sample would be:
#include "coraza/coraza.h" char main_rule_uri[] = "basic_rules.conf"; int main (int argc, char **argv) { Coraza *waf = NULL; Parser *parser = NULL Transaction *transaction = NULL; waf = coraza_init(); parser = coraza_parser(waf); coraza_parser_read_file(main_rule_uri); transaction = coraza_new_transaction(waf); coraza_process_connection(transaction, "127.0.0.1"); coraza_process_uri(transaction, "http://www.modsecurity.org/test?key1=value1&key2=value2&key3=value3&test=args&test=test"); coraza_process_request_headers(transaction); coraza_process_request_body(transaction); coraza_process_response_headers(transaction); coraza_process_response_body(transaction); return 0; }
The text was updated successfully, but these errors were encountered:
Moved to issue #100
Sorry, something went wrong.
No branches or pull requests
We need C wrappers in order to connect with other programs like Nginx and Apache.
We are going to copy the functions used by modsecurity but replacing
msc_
withcoraza_
.A sample would be:
The text was updated successfully, but these errors were encountered: