24 lines
923 B
Plaintext
24 lines
923 B
Plaintext
// 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);
|
|
}
|