Sunday, December 22, 2024

WordPress Hack: remove “WordPress Generator”

- Advertisement -spot_img
- Advertisement -Best Managed Hosting

The publishing platform WordPress adds a small line for itself to advertise and clarify that the site that you find is a site using WordPress.

Except that in addition to reporting that it’s WordPress, it goes to show the current version.It is not embarrassing, except that each version has its security problems…

Past one of this codes in your functions.php file.

[sourcecode language=”php”]// Remove the WordPress Generator<br />
function remove_generators() { return ”; }<br />
add_filter( ‘the_generator’, ‘remove_generators’ );[/sourcecode]

- Advertisement -
Best Managed Hosting

You can also say that it’s WordPress without specifying which version

[sourcecode language=”php”]// Change the WordPress Generator<br />
function change_generators() { return ‘&lt;meta name=&quot;generator&quot; content=&quot;WordPress&quot; /&gt;’; }<br />
add_filter( ‘the_generator’, ‘change_generators’ );<br />
[/sourcecode]

- Advertisement -
Latest news
- Advertisement -



Liquid Web Storm VPS
Related articles
- Advertisement - Traffic Analysts Tool