Category Archives: uncategorized

fail2ban WordPress XMLRPC spammers

Poor SEO scripts kept spamming my wordpress install (via xmlrpc.php) and pegging my CPU. I got annoyed, so now they get banned. The configuration in jail.conf: [apache-xmlrpc] enabled = true port = http,https filter = apache-xmlrpc action = iptables[name=http, port=http, … Continue reading

Posted in uncategorized | Leave a comment

Pretty Print XML

Put this python file in your path to get the following: #!/usr/bin/env python “”” Command-line tool to validate and pretty-print XML. Based on `pjson` but without the crap. Usage:: $ echo ‘<bunk atr=”hello”>world</bunk>’ | pxml <?xml version=”1.0″ ?> <bunk atr=”hello”> … Continue reading

Posted in uncategorized | Leave a comment

SiteMesh 2 Undecorated AJAX requests

Note: Only after testing and writing this did I realize this is not a good idea. I will leave this up in the case it helps someone do something else, but this is a poor way to do this. I … Continue reading

Posted in uncategorized | 2 Comments