This commit is contained in:
Mateusz Gruszczyński committed 2026-11-20 17:18:02 +01:00
1 parent 5e43752041
commit 15425fb803
34 files changed
+1423 -89

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
// Optional template: only shared/public content independent of these cookies.
// Cloudflare: __cf_bm, cf_clearance, _cfuvid, __cfruid, __cfseq
// Akamai: _abck, ak_bmsc, bm_sz, bm_sv
// Security cookies can be needed for bot challenges; review before enabling.
sub vcl_recv {
if (req.method != "GET" && req.method != "HEAD") {
return(pass);
}
if (req.url ~ "^/(admin|api|auth|login|logout|panel|konto|dashboard)(/|[?]|$)") {
return(pass);
}
if (req.http.Authorization) {
return(pass);
}
// Match the complete Cookie header, not one cookie within it.
if (req.http.Cookie ~ "^(?:__cf_bm|cf_clearance|_cfuvid|__cfruid|__cfseq|_abck|ak_bmsc|bm_sz|bm_sv)=[^;]*(?:;[ \t]*(?:__cf_bm|cf_clearance|_cfuvid|__cfruid|__cfseq|_abck|ak_bmsc|bm_sz|bm_sv)=[^;]*)*$") {
unset req.http.Cookie;
}
if (req.http.Cookie) {
return(pass);
}
return(hash);
}