cydrobolt / polr

:aerial_tramway: A modern, powerful, and robust URL shortener
https://polrproject.org
GNU General Public License v2.0
5k stars 889 forks source link

Feature request: Add Blacklist. #435

Open michaelachmann opened 6 years ago

michaelachmann commented 6 years ago

Since my shortening service is becoming more popular the amount of spammer making use of my service increased as well. In order to lock spammers out it would be perfect to have a domain blacklist - URLs on these domains will not be shortened anymore.

In the LinkHelper there's already some hard coded URLs which the link is checked against before being shortened. This function could be extended in order to implement a function on the admin interface to add blacklisted URLs.

klezm commented 6 years ago

I implemented the feature to implement a whitelist and a blacklist. Feel free to test and improve. PR: https://github.com/cydrobolt/polr/pull/477

draft1 commented 5 years ago

Waiting for this feature to get implemented. Thanks!