How to stop bad bots from visiting your website?

Recently I noticed in Google Analytics a lot of referral to the page https://www.worldofwp.com//h/1486338.html that doesn’t exist on my website. Visiting the page gives a 404 error. Diving deeper into Google Analytics learned me it was all referral spam from a website called autoseoservice.org. After searching on the Internet I found out it definitely was … Read more

Allow PHP in WordPress default text widget

The default text widget in WordPress only supports HTML. You can extend the functionality of the text widget by making it possible to execute PHP. Put this code in the functions.php of the theme you are using:

Always backup your functions.php before changing it!

Remove WordPress version from header

It’s very easy to track the version of WordPress you are running on your site. Because it’s that easy, it can also mean a security leak. Especially if you don’t update WordPress frequently. There is an easy way to hide the version number. Just add this code to the functions.php of the theme you’re using. … Read more

Remove query strings from CSS and Javascript

Theme and plugin developers often add a version number to the CSS and Javascript files. This way they force the browser to always load the most recent versions.¬†It also causes these files not to be cached, because of the query string added to the file name. So every file must be reloaded every time it … Read more