Use more correct terms

This commit is contained in:
Geoffrey Frogeye 2020-12-06 21:29:48 +01:00
parent 0ecb431728
commit eb1fcefd49
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 10 additions and 10 deletions

View file

@ -21,14 +21,14 @@ if __name__ == '__main__':
for test in reader: for test in reader:
log.info("Testing %s (%s)", test['url'], test['comment']) log.info("Testing %s (%s)", test['url'], test['comment'])
for white in test['white'].split(':'): for allow in test['allow'].split(':'):
if not white: if not allow:
continue continue
if any(DB.get_domain(white)): if any(DB.get_domain(allow)):
log.error("False positive: %s", white) log.error("False positive: %s", allow)
for black in test['black'].split(':'): for deny in test['deny'].split(':'):
if not black: if not deny:
continue continue
if not any(DB.get_domain(black)): if not any(DB.get_domain(deny)):
log.error("False negative: %s", black) log.error("False negative: %s", deny)

View file

@ -1,4 +1,4 @@
url,white,black,comment url,allow,deny,comment
https://support.apple.com,support.apple.com,,EdgeKey / AkamaiEdge https://support.apple.com,support.apple.com,,EdgeKey / AkamaiEdge
https://www.pinterest.fr/,i.pinimg.com,,Cedexis https://www.pinterest.fr/,i.pinimg.com,,Cedexis
https://www.tumblr.com/,66.media.tumblr.com,,ChiCDN https://www.tumblr.com/,66.media.tumblr.com,,ChiCDN

1 url white allow black deny comment
2 https://support.apple.com support.apple.com support.apple.com EdgeKey / AkamaiEdge
3 https://www.pinterest.fr/ i.pinimg.com i.pinimg.com Cedexis
4 https://www.tumblr.com/ 66.media.tumblr.com 66.media.tumblr.com ChiCDN

View file

@ -1,4 +1,4 @@
url,white,black,comment url,allow,deny,comment
https://www.red-by-sfr.fr/,static.s-sfr.fr,nrg.red-by-sfr.fr,Eulerian https://www.red-by-sfr.fr/,static.s-sfr.fr,nrg.red-by-sfr.fr,Eulerian
https://www.cbc.ca/,,smetrics.cbc.ca,2o7 | Ominuture | Adobe Experience Cloud https://www.cbc.ca/,,smetrics.cbc.ca,2o7 | Ominuture | Adobe Experience Cloud
https://www.discover.com/,,content.discover.com,ThreatMetrix https://www.discover.com/,,content.discover.com,ThreatMetrix

1 url white allow black deny comment
2 https://www.red-by-sfr.fr/ static.s-sfr.fr nrg.red-by-sfr.fr Eulerian
3 https://www.cbc.ca/ smetrics.cbc.ca 2o7 | Ominuture | Adobe Experience Cloud
4 https://www.discover.com/ content.discover.com ThreatMetrix