PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Ability to block certain domains from being imported with url

Open Xudros opened this issue 6 months ago • 6 comments

Describe the problem to be solved

I'm currently in need of a way to block certain domains that I don't want to be imported to my instance through the URL import.

Describe the solution you would like

I was trying to make a plugin but as I'm very inexperienced with this I cant do it alone, my idea is that when someone imports a URL, it takes the start of it like "https://example.com" scans until the end and stops right before it gets a third / or a : as that's what is normally after the domain, and compares it to a list you'll be able to make in settings, I have parts of a plugin made for it but as I don't know how to use the hooks in peertube to get the URL or even the right hook to try and use for when they upload a URL or even if I should be using hooks but I'm assuming so, if someone can point me in the right direction for the plugin I can do my best, or if this becomes a new feature in an update awesome!

Xudros avatar Aug 06 '24 10:08 Xudros