diff --git a/static/modsec/l7.conf b/static/modsec/l7.conf new file mode 100644 index 0000000..f43b834 --- /dev/null +++ b/static/modsec/l7.conf @@ -0,0 +1,23 @@ + testcookie off; + testcookie_name DOPEHOSTING; + testcookie_secret random; + testcookie_session $remote_addr; + #testcookie_arg GO; + testcookie_httponly_flag on; + testcookie_max_attempts 3; + testcookie_secure_flag on; + testcookie_get_only on; + testcookie_p3p 'CP="CUR ADM OUR NOR STA NID", policyref="/w3c/p3p.xml"'; + testcookie_fallback /cookies.html?backurl=$scheme://$host$request_uri; + + # Those are some ip's whitelisted by me. mostly are search engines. But not everything! + testcookie_whitelist { + 8.8.8.8/32; + 127.0.0.1/32; + # I don't suggest using alot of IPs here as this whitelist can fail!. + } + testcookie_redirect_via_refresh on; + testcookie_refresh_encrypt_cookie on; + testcookie_refresh_encrypt_cookie_key random; + testcookie_refresh_encrypt_cookie_iv random; + testcookie_refresh_template 'Just a moment please... ';