You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a blacklist: Vec<Url> field to the configuration settings struct. Serde will then automatically verify any specified urls on configuration load.
Check the blacklist vector when resolving URLs and bail if it contains the current url token.
However this would then have to be an exhaustive list of URLs you want to black list, providing a domain probably wouldn't black list all urls under this domain, for example. That would require some more thought.
Originally I thought maybe Url might itself have a contains() method, so you could identify whether the current url's path contains the blacklisted URL, but a quick look suggests not.
It would be good to be able to specify a list of URLs that one doesn't want url-bot to resolve.
The text was updated successfully, but these errors were encountered: