Update filter
This commit is contained in:
parent
34b543c1ab
commit
4892bc301e
1 changed files with 6 additions and 2 deletions
|
|
@ -9,8 +9,12 @@ module.exports = async () => {
|
||||||
const userIp = clientIp.getAddress();
|
const userIp = clientIp.getAddress();
|
||||||
const reportedIPs = readReportedIPs().filter(x =>
|
const reportedIPs = readReportedIPs().filter(x =>
|
||||||
x.status === 'REPORTED' &&
|
x.status === 'REPORTED' &&
|
||||||
x.ip !== userIp && !['//video', '//js', '//images', '//imgs', 'favicon.ico'].includes(x.endpoint) &&
|
x.ip !== userIp &&
|
||||||
!x.sefinekAPI);
|
!['//video', '//js', '//images', '//imgs', 'favicon.ico'].some(endpoint => x.endpoint.includes(endpoint)) && // Endpoints
|
||||||
|
x.hostname !== 'blocklist.sefinek.net' && // Domains
|
||||||
|
!['Chrome/129', 'Chrome/130'].some(agent => x.useragent.includes(agent)) && // User-agents
|
||||||
|
!x.sefinekAPI
|
||||||
|
);
|
||||||
|
|
||||||
if (reportedIPs.length === 0) return;
|
if (reportedIPs.length === 0) return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue