Stopping spam subscribes on mailman

From DISI
Jump to navigation Jump to search

When we get lots of annoying subscription requests and just want to remove/ban them all:

1) Go to mailing list pending administration page
2) Open developer tools in chrome
3) Go to the "Console" tab
4) Paste this in:
var inputs = document.getElementsByTagName('input'); for(var i =0;i<inputs.length;i++) { var input = inputs[i]; if(input.getAttribute('type') == 'RADIO' && input.getAttribute('value') == '3') { input.checked = true; } else if (input.getAttribute('name').indexOf('ban-') === 0) { input.checked=true; } }
5) Press submit.
6) Enjoy the megabans.

If you are one of those spammers: please stop. You are hurting kittens.