Last active
December 18, 2015 02:09
-
-
Save arminrosu/5709391 to your computer and use it in GitHub Desktop.
Lazy man's way of adding wordpress spam users to stopforumspam database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var key = '12345678901234'; | |
jQuery('#the-list tr').each(function(){ | |
$tr = jQuery(this); | |
var spammer = { | |
'username': $tr.find('.username a').first().text(), | |
'email': $tr.find('.email a').children().remove().end().text(), | |
'ip_addr': $tr.find('.signup_ip em').text(), | |
'api_key': key | |
} | |
jQuery.post( | |
'http://www.stopforumspam.com/add.php', | |
spammer, | |
function( response ) { | |
console.log(response); | |
}, | |
'jsonp' // will throw error as it won't respond; data will be submitted | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment