Skip to content

Instantly share code, notes, and snippets.

@miziomon
Last active August 29, 2015 14:21
Show Gist options
  • Save miziomon/b180b03e6e9a94430b42 to your computer and use it in GitHub Desktop.
Save miziomon/b180b03e6e9a94430b42 to your computer and use it in GitHub Desktop.
blackhole implementation
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(phpinfo|wp-signup|phpmyadmin|database|usage|cgi|signup|admin|register|timthumb|function|system|test|t|jsp|asp|aspx)$ blackhole/ [L]
</ifModule>
<?php
/*
* Blackhole implementation
*/
if (!is_admin()) {
include( WP_CONTENT_DIR . "/blackhole/blackhole.php" );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment