mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-07-12 15:33:10 +00:00
Compare commits
No commits in common. "ff8cae2a593b225155c6a32cd52b569cfb671472" and "ed75144e82f509a7e80627e55bbed5a47b79a8cb" have entirely different histories.
ff8cae2a59
...
ed75144e82
|
@ -3,12 +3,11 @@
|
||||||
# fediverse.py
|
# fediverse.py
|
||||||
# Fediverse (Mastodon, Misskey, Pleroma, ...) SPAM filter plugin for Caterpillar Proxy
|
# Fediverse (Mastodon, Misskey, Pleroma, ...) SPAM filter plugin for Caterpillar Proxy
|
||||||
#
|
#
|
||||||
# Caterpillar Proxy - The simple and parasitic web proxy with SPAM filter (formerly, php-httpproxy)
|
# Caterpillar Proxy - The simple and parasitic web proxy with SPAM filter
|
||||||
# Namyheon Go (Catswords Research) <abuse@catswords.net>
|
# Namyheon Go (Catswords Research) <gnh1201@gmail.com>
|
||||||
# https://github.com/gnh1201/caterpillar
|
# https://github.com/gnh1201/caterpillar
|
||||||
#
|
# Created at: 2022-10-06
|
||||||
# Created in: 2022-10-06
|
# Updated at: 2024-12-28
|
||||||
# Updated in: 2024-06-05
|
|
||||||
#
|
#
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
@ -22,11 +21,11 @@ from PIL import Image
|
||||||
from server import Extension
|
from server import Extension
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client_encoding = config('CLIENT_ENCODING', default='utf-8')
|
client_encoding = config('CLIENT_ENCODING')
|
||||||
truecaptcha_userid = config('TRUECAPTCHA_USERID') # truecaptcha.org
|
truecaptcha_userid = config('TRUECAPTCHA_USERID') # truecaptcha.org
|
||||||
truecaptcha_apikey = config('TRUECAPTCHA_APIKEY') # truecaptcha.org
|
truecaptcha_apikey = config('TRUECAPTCHA_APIKEY') # truecaptcha.org
|
||||||
dictionary_file = config('DICTIONARY_FILE', default='words_alpha.txt') # https://github.com/dwyl/english-words
|
dictionary_file = config('DICTIONARY_FILE', default='words_alpha.txt') # https://github.com/dwyl/english-words
|
||||||
librey_apiurl = config('LIBREY_APIURL', default='https://search.catswords.net') # https://github.com/Ahwxorg/librey
|
librey_apiurl = config('LIBREY_APIURL') # https://github.com/Ahwxorg/librey
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print ("[*] Invaild configration: %s" % (str(e)))
|
print ("[*] Invaild configration: %s" % (str(e)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user