This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import logging | |
import sys | |
import vobject | |
import requests | |
from requests.auth import HTTPBasicAuth | |
from requests.packages.urllib3.poolmanager import PoolManager | |
# https://stackoverflow.com/questions/26479039/python-requests-direct-pem-pinning-with-self-signed-cert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sbin/nft -f | |
flush ruleset | |
table inet filter { | |
chain input { | |
type filter hook input priority 0; policy drop; | |
iif lo accept comment "Accept any localhost traffic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# wget https://raw.githubusercontent.com/piwik/referrer-spam-blacklist/master/spammers.txt -O spammers.txt | |
{ | |
echo -ne 'RewriteEngine On\n\n' && \ | |
echo '# denied referers' && \ | |
cat spammers.txt | head -n -1 | sed 's/\./\\\./g' | sed 's/^\(.*\)$/RewriteCond "%{HTTP_REFERER}" "\1$" [NC,OR]/' && \ | |
cat spammers.txt | tail -n 1 | sed 's/\./\\\./g' | sed 's/^\(.*\)$/RewriteCond "%{HTTP_REFERER}" "\1$" [NC]/' && \ | |
echo 'RewriteRule .* - [F]' |
NewerOlder