This file contains hidden or 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
CC ?= gcc | |
CFLAGS := -Wall -Wno-newline-eof -pedantic -Werror -Wshadow -Wstrict-aliasing -Wstrict-overflow -O3 | |
LDFLAGS := | |
BIN_DIR := bin | |
OBJ_DIR := build | |
SRC_DIR := src | |
DESTDIR ?= /usr/local/bin | |
TARGET_NAME := main |
This file contains hidden or 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
import os | |
import sys | |
import time | |
BLOCKED_DOMAIN = "chatgpt.com" | |
def block_traffic(): | |
try: | |
os.system(f"sudo iptables -A OUTPUT -p tcp -d {BLOCKED_DOMAIN} -j REJECT") | |
os.system(f"sudo iptables -A OUTPUT -p udp -d {BLOCKED_DOMAIN} -j REJECT") |
This file contains hidden or 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
import tkinter as tk | |
import subprocess | |
import logging | |
logging.basicConfig(filename='/home/kevin/Kod/BlockGPT/block_gpt.log', level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') | |
class BlockerApp: | |
def __init__(self, root): | |
self.root = root | |
self.root.title("ChatGPT Blocker") |
This file contains hidden or 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
import os | |
import requests | |
from bs4 import BeautifulSoup | |
from urllib.parse import urljoin, unquote | |
import logging | |
import colorlog | |
from concurrent.futures import ThreadPoolExecutor | |
from time import time | |
from requests.adapters import HTTPAdapter | |
from urllib3.util.retry import Retry |
OlderNewer