Is there any way we can tweak the Spam blacklist filter to block images that match blacklist list entries while $wgAllowExternalImages is set?
Right now when $wgAllowExternalImages is true, the parser is converting the links in internalParse to images, which is expected, but if those images match something in the blacklist they won't be blocked. These images also don't show up in out->getImages.
If we could check the spam blacklist against something a little less processed than external links, it might work. Is there any reason why the blacklist isn't just compared to the raw Mediawiki text?
Thanks, Travis
On 05/12/06, Travis Derouin travis@wikihow.com wrote:
If we could check the spam blacklist against something a little less processed than external links, it might work. Is there any reason why the blacklist isn't just compared to the raw Mediawiki text?
Because it opens up several loopholes which allow users to circumvent the blacklist; this is in fact the reason we switched over to post-parse information.
Rob Church
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Travis Derouin wrote:
Is there any way we can tweak the Spam blacklist filter to block images that match blacklist list entries while $wgAllowExternalImages is set?
Right now when $wgAllowExternalImages is true, the parser is converting the links in internalParse to images, which is expected, but if those images match something in the blacklist they won't be blocked. These images also don't show up in out->getImages.
If we could check the spam blacklist against something a little less processed than external links, it might work.
Probably the proper way to do it is have the parser add the external images to the list of external links.
Is there any reason why the blacklist isn't just compared to the raw Mediawiki text?
Templates, funky formatting, etc etc.
This way we guarantee that the links that appear are the ones that are checked.
- -- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org