Skip to content

Instantly share code, notes, and snippets.

View craftsman-expert's full-sized avatar

Igor craftsman-expert

  • Moscow
  • 08:03 (UTC +03:00)
View GitHub Profile
import time
import re
import subprocess
from collections import defaultdict
import requests
from datetime import datetime, timedelta
NGINX_LOG = "/var/log/nginx/access.log"
BLOCK_FILE = "/etc/nginx/vhosts-includes/bots-block.conf"
LIMIT = 500