The trick is protecting it while still having it be useful.
I have a friend who set one up. He had to pull the plug on it after a month or two because there were thousands or instances where people were using it to link to highly illegal forms of pornographic images.
It’s not hard, there are several that are nearly plug-and-play projects on GitHub. If you can setup a web server, you can setup a shortener.