Merge pull request #143 from n0a/patch-2

Update firewall.js, add ddos-guard WAF
This commit is contained in:
Alicia Sykes 2024-05-18 14:37:40 +01:00 committed by GitHub
commit c30e3a015c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,6 +95,10 @@ const handler = async (url) => {
return hasWaf('QRATOR WAF'); return hasWaf('QRATOR WAF');
} }
if (headers['server'] && headers['server'].includes('ddos-guard')) {
return hasWaf('DDoS-Guard WAF');
}
return { return {
hasWaf: false, hasWaf: false,
} }