Here is an example patch to phpwiki that
1. Adds a new function to editpage, blacklisted_urls
that takes a text argument
2. Calls it from the IsSpam function.
3. Returns that the page is spam when any of the urls
This requires the Net::DNSBL pear module, so obviously,
this should be wrapped in a configure option, etc. We
could also try to implement some kind of scoring, etc.
I consider this a middle ground between using a
babycart like thing (which can get expensive, and is
somewhat trickier to set up), and using nothing.
Plus, you can use it to do whatever other url
blacklisting you wanted (just read add to the for loop
that loops through the url matches)
Log in to post a comment.