Commit graph

7 commits

Author SHA1 Message Date
Mia Herkt
45a414c5ee
Implement request filters
This moves preexisting blacklists to the database, and adds the
following filter types:

    * IP address
    * IP network
    * MIME type
    * User agent

In addition, IP address handling is now done with the ipaddress
module.
2024-09-27 18:30:28 +02:00
Mia Herkt
6393538333
Replace NSFW detector implementation 2024-09-27 06:34:14 +02:00
Mia Herkt
455863c138
Update requirements.txt 2022-12-20 16:19:49 +01:00
mia
9c4a0fd5a6 remove short_url and add in-tree URLencoder (#53)
This PR removes the short_url dependency as per issue #41.
This implementation is pretty much the same as in short_url except I've rewritten the enbase() function to be iterative instead of recursive.
The only functions of the class are enbase() and debase() since those were the only functions being used by fhost.

Co-authored-by: 7415963987456321 <hrs70@hi.is>
Reviewed-on: https://git.0x0.st/mia/0x0/pulls/53
Co-authored-by: mia <mia@0x0.st>
Co-committed-by: mia <mia@0x0.st>
2021-12-01 13:25:33 +01:00
Mia Herkt
b7c12902da
Update requirements.txt 2021-05-23 19:13:51 +02:00
Martin Herkt
f66418ad4d
Update requirements.txt 2019-04-30 19:06:25 +02:00
Martin Herkt
56f0295be2
init 2016-11-01 05:25:58 +01:00