cookies.clear(block["blocked"])
logger.info("blocker='%s' has %d obfuscated domain(s) and %d of them could be deobfuscated.", blocker, obfuscated, deobfuscated)
+ instances.set_obfuscated_blocks(blocker, obfuscated)
- logger.debug("Checking if blocker='%s' has pending updates ...", blocker)
- if instances.has_pending(blocker):
- logger.debug("Flushing updates for blocker='%s' ...", blocker)
- instances.update(blocker)
+ logger.debug("Flushing updates for blocker='%s' ...", blocker)
+ instances.update(blocker)
logger.debug("Invoking commit() ...")
database.connection.commit()
logger.debug("Invoking locking.acquire() ...")
locking.acquire()
- # Static URLs
- urls = ({
- "blocker": "seirdy.one",
- "url" : "https://seirdy.one/pb/bsl.txt",
- },)
-
- logger.info("Checking %d text file(s) ...", len(urls))
- for row in urls:
+ logger.info("Checking %d text file(s) ...", len(blocklists.txt_files))
+ for row in blocklists.txt_files:
logger.debug("Fetching row[url]='%s' ...", row["url"])
response = utils.fetch_url(row["url"], network.web_headers, (config.get("connection_timeout"), config.get("read_timeout")))
},
)
+# Static URLs
+txt_files = ({
+ "blocker": "seirdy.one",
+ "url" : "https://seirdy.one/pb/bsl.txt",
+},{
+ "blocker": "seirdy.one",
+ "url" : "https://seirdy.one/pb/FediNuke.txt",
+})
+
# Other CSV files
csv_files = (
{
"blocker": "tooters.org",
"csv_url": "https://raw.githubusercontent.com/victorwynne/victorwynne/tooters/federation/tooters_defederations.csv",
- },
+ },{
+ "blocker": "pleroma.envs.net",
+ "csv_url": "https://seirdy.one/pb/pleroma.envs.net.csv",
+ }
)
def has(domain: str) -> bool: