Blacklist URLs and words in posts #90

Open
opened 3 months ago by leftypol · 6 comments
Owner

Urls shorteners are often used by spammers and functionally useless in 2024. Extend the codebase to automatically block all messages from known services.
Possible sources:

Maybe it can be implemented by loading the list at runtime (can php cache the file?), or by encoding it in the php source.

Urls shorteners are often used by spammers and functionally useless in 2024. Extend the codebase to automatically block all messages from known services. Possible sources: - https://github.com/sambokai/ShortURL-Services-List - https://github.com/PeterDaveHello/url-shorteners - https://gist.github.com/HoangTuan110/e6eb412ed32657c841fcc2c12c156f9d Maybe it can be implemented by loading the list at runtime (can php cache the file?), or by encoding it in the php source.
leftypol added the
feature request
label 3 months ago
leftypol referenced this issue from a commit 3 months ago
Collaborator

The issue right now is: where to store all the urls?
Do we reaload everything from a file upon each request?
Do we use the DB as a storage?
Do we cache anything?

The syntesis would be to store most of the data in the DB, in order to allow the staff to edit it, while also providing a tool to automatically import a file into the db.

This syntesis can also be made generic over any word, allowing for more varied filtering.

The issue right now is: where to store all the urls? Do we reaload everything from a file upon each request? Do we use the DB as a storage? Do we cache anything? The syntesis would be to store most of the data in the DB, in order to allow the staff to edit it, while also providing a tool to automatically import a file into the db. This syntesis can also be made generic over any word, allowing for more varied filtering.
Collaborator

Such a feature could allow to singlehandedly obsolete most of the event system current usage over instance-config.php

Such a feature could allow to singlehandedly obsolete most of the event system current usage over `instance-config.php`
Collaborator

Who inserted what in the list should be tracked, with the entries inserted by tool marked as such.
This can allow the insertion of multiple lists which can then be removed by simply removing all the entries inserted by someone.

Who inserted what in the list should be tracked, with the entries inserted by tool marked as such. This can allow the insertion of multiple lists which can then be removed by simply removing all the entries inserted by someone.
Collaborator

The matching itself should be done with regexes, with a possible UI setting to enable case-sensibility.

The matching itself should be done with regexes, with a possible UI setting to enable case-sensibility.
Collaborator

Since regexes can potentially be very broken, we should start by only allowing plaintext filtering.
This would require escaping regex symbols upon insertion of new entries

Since regexes can potentially be very broken, we should start by only allowing plaintext filtering. This would require escaping regex symbols upon insertion of new entries
Collaborator

This could potentially be hooked up with the system described in #78

This could potentially be hooked up with the system described in #78
Zankaria changed title from [Feature Request] Block messages from list to [Feature Request] Block messages via matching 2 months ago
Zankaria changed title from [Feature Request] Block messages via matching to Blacklist URLs and words in posts 23 hours ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.