Remove Wordpress Identifying Code

function removeHeadLinks() { remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); } add_action('init', 'removeHeadLinks'); remove_action('wp_head', 'wp_generator');
If you're running a WordPress site, add this code into your functions.php file.
Hackers look for the things this code removes (among other things) to help find a WordPress.org-powered site. That can leave you vulnerable from arguably unnecessary stuff in the <head> of your site. This won't leave you bulletproof but it doesn't hurt.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.