mirror of
https://github.com/v2fly/domain-list-community.git
synced 2025-12-28 13:27:18 +07:00
Compare commits
3 Commits
2025121613
...
2025121615
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93bfcfd142 | ||
|
|
cbe19f0562 | ||
|
|
ea99bef4a2 |
@@ -38,6 +38,7 @@ include:newrelic-ads
|
|||||||
include:ogury-ads
|
include:ogury-ads
|
||||||
include:ookla-speedtest-ads
|
include:ookla-speedtest-ads
|
||||||
include:openx-ads
|
include:openx-ads
|
||||||
|
include:picacg-ads
|
||||||
include:pocoiq-ads
|
include:pocoiq-ads
|
||||||
include:pubmatic-ads
|
include:pubmatic-ads
|
||||||
include:qihoo360-ads
|
include:qihoo360-ads
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ partnerad.l.google.com @ads
|
|||||||
urchin.com @ads
|
urchin.com @ads
|
||||||
|
|
||||||
full:analytics.google.com @ads
|
full:analytics.google.com @ads
|
||||||
full:fundingchoicesmessages.google.com @ads
|
# https://github.com/AdguardTeam/FiltersRegistry/pull/1154
|
||||||
|
# full:fundingchoicesmessages.google.com @ads
|
||||||
|
|
||||||
regexp:^adservice\.google\.([a-z]{2}|com?)(\.[a-z]{2})?$ @ads
|
regexp:^adservice\.google\.([a-z]{2}|com?)(\.[a-z]{2})?$ @ads
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
include:picacg-ads
|
||||||
|
|
||||||
bikaa.xyz
|
bikaa.xyz
|
||||||
bikac.xyz
|
bikac.xyz
|
||||||
bikaios.xyz
|
bikaios.xyz
|
||||||
@@ -10,8 +12,5 @@ picacomic.xyz
|
|||||||
wikawika.xyz
|
wikawika.xyz
|
||||||
|
|
||||||
# Image Resource Domain like `img.diwodiwo.xyz` `s3.diwodiwo.xyz` `storage.diwodiwo.xyz` `storage-b.diwodiwo.xyz`
|
# Image Resource Domain like `img.diwodiwo.xyz` `s3.diwodiwo.xyz` `storage.diwodiwo.xyz` `storage-b.diwodiwo.xyz`
|
||||||
|
|
||||||
ad-channel.diwodiwo.xyz @ads
|
|
||||||
ad-display.diwodiwo.xyz @ads
|
|
||||||
diwodiwo.xyz
|
diwodiwo.xyz
|
||||||
|
|
||||||
|
|||||||
2
data/picacg-ads
Normal file
2
data/picacg-ads
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
full:ad-channel.diwodiwo.xyz @ads
|
||||||
|
full:ad-display.diwodiwo.xyz @ads
|
||||||
6
main.go
6
main.go
@@ -7,6 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -71,6 +72,11 @@ func (l *ParsedList) toProto() (*router.GeoSite, error) {
|
|||||||
Attribute: entry.Attrs,
|
Attribute: entry.Attrs,
|
||||||
})
|
})
|
||||||
case "regexp":
|
case "regexp":
|
||||||
|
// check regexp validity to avoid runtime error
|
||||||
|
_, err := regexp.Compile(entry.Value)
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("invalid regexp in list %s: %s", l.Name, entry.Value)
|
||||||
|
}
|
||||||
site.Domain = append(site.Domain, &router.Domain{
|
site.Domain = append(site.Domain, &router.Domain{
|
||||||
Type: router.Domain_Regex,
|
Type: router.Domain_Regex,
|
||||||
Value: entry.Value,
|
Value: entry.Value,
|
||||||
|
|||||||
Reference in New Issue
Block a user