Mute Screamer 1.0.6

Mute Screamer 1.0.6 has been released. This updated fixes a minor bug with the update hashes. They seem to be out of date on the PHPIDS website, so I’ve rolled my own solution for now.

This should fix the problem some users were having problems with the updater asking users to update when the files were the same.

Handy redirect for WordPress

This is a handy little wrapper around wp_redirect I use in functions.php. Most of the time when using wp_redirct I want PHP to exit, so thats what the following function does, and while we’re at it why not throw in the ability to accept a post ID or a uri for the location.

 * A handy wrapper to wp_redirect which exits after calling wp_redirect.
 * $location can be a url or a post id.
 * @param string|integer
 * @return bool False if $location is not set
function wptf_redirect( $location = '', $status = 302 ) {
	$permalink = false;

	if( is_int( $location ) ) {
		$permalink = true;
		$location = get_permalink( $location );

	if ( ! $location ) {
		return false;

	if( ! $permalink ) {
		$location = ltrim( $location, '/' );
		$location = '/'.trailingslashit( $location );
		$location = get_bloginfo( 'url' ).$location;

	wp_redirect( $location, $status );

Mute Screamer 1.0.3

Mute Screamer 1.0.3 is now available in the WordPress plugin directory. This is a minor update which addresses some bug fixes and improves compatibility with WordPress 3.2.

See the changelog for full details.

Mute Screamer 1.0 released

Following the latest release of WordPress comes the latest version of Mute Screamer.

Get your copy or update via the WordPress admin.

The biggest change in this release is ip banning and attack throttling.

You can configure Mute Screamer to ban clients when an attack is over the specified ban threshold. For attack throttling clients will be banned after a specified number of repeated attacks.

New features

  • IP banning
  • The ability to add fields to the exclusion list while on the intrusions page
  • Email spam prevention

Other updates include:

  • i18n support
  • Updated 500.php template

Have a look at the change log for the full list of improvements and enhancements.

Snow Leopard 10.6.5 and apachectl

I just upgraded to 10.6.5 and noticed that apachectl stops working properly. When I run apacheclt now it gives me this error:

/usr/sbin/apachectl: line 82: ulimit: open files: cannot modify limit: Invalid argument

The problem seems to be with the ULIMIT variable in the shell script:

ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"

I think the problem is that ulimit returns “unlimited” which cannot be used in the command ulimit -S -n, so I just changed the ULIMIT back to what it was before upgrading to 10.6.5: