AmaranthineCodices / chrysanthemum

A content filtration bot for Discord.
3 stars 2 forks source link

Match URL redirections against the filter #35

Open Archasion opened 1 year ago

Archasion commented 1 year ago

Chrysanthemum currently filters out certain URLs based on a predetermined list of blocked domains. However, some users are getting around the filter by using URL shorteners or redirects to bypass the blocked domains.

To address this issue, the bot could match most (if not all) redirections of a URL against the configured filter. This should limit the number of users able to bypass a blacklisted/non-whitelisted domain.

One crate/module that could be used for this implementation is reqwest::redirect