mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-07-12 15:33:10 +00:00
Compare commits
3 Commits
ed75144e82
...
ff8cae2a59
Author | SHA1 | Date | |
---|---|---|---|
ff8cae2a59 | |||
b984905f34 | |||
2f1faef447 |
|
@ -3,11 +3,12 @@
|
||||||
# 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
|
# Caterpillar Proxy - The simple and parasitic web proxy with SPAM filter (formerly, php-httpproxy)
|
||||||
# Namyheon Go (Catswords Research) <gnh1201@gmail.com>
|
# Namyheon Go (Catswords Research) <abuse@catswords.net>
|
||||||
# https://github.com/gnh1201/caterpillar
|
# https://github.com/gnh1201/caterpillar
|
||||||
# Created at: 2022-10-06
|
#
|
||||||
# Updated at: 2024-12-28
|
# Created in: 2022-10-06
|
||||||
|
# Updated in: 2024-06-05
|
||||||
#
|
#
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
@ -21,11 +22,11 @@ from PIL import Image
|
||||||
from server import Extension
|
from server import Extension
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client_encoding = config('CLIENT_ENCODING')
|
client_encoding = config('CLIENT_ENCODING', default='utf-8')
|
||||||
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') # https://github.com/Ahwxorg/librey
|
librey_apiurl = config('LIBREY_APIURL', default='https://search.catswords.net') # 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