Do you use Maxmind’s free code and database file(s) for Geoip? Is updating your site with the latest data file one of those tasks you never have time to do?
Here’s a “sit back and forget it” PHP script with error detection, recovery, and email notification to automate the process! You can even use it to get and uncompress gzip files from other remote sites.
Do you have scheduled jobs run via Cron that you want to prevent being run via browsers and other user agents?
Well, here are two single line statements to do just that. One, for scripts “requested” by directory path; and another for scripts requested by URL.
If you are unable to access your WordPress dashboard because the login page is blocked, it could be because your host’s server security has detected a brute force attack.
This article shows how to make a few simple changes which allow you to continue logging in whilst keeping your server’s brute force countermeasures.
There are occasions when you may want your pages to be “refreshed” from the server rather than browser cache. This is simple to achieve for most browsers except Opera.
Can’t find a solution that works for Opera on any of the developer forums?
Comment spambots use “footprints” to find your site. Find out how to remove these identifying footprints from your blog and vastly reduce the volume of spam targeted at your site.
Is your blog plagued by comment spam? Most spam is generated by automated software. Find out how those bots find your blog, and what you need to change to hide your site from them.
The default 403 and 404 pages are short plain text messages that do not encourage visitors to stay on your site. Customising these pages is usually achieved by creating 403/404.shtml files. However there are other solutions each with their pros and cons.
Include code listings in your posts: this tutorial shows how to trick highlight_file into using classes; add line numbers; and make them easily identifiable for copy and paste.
The lazy bloggers guide to displaying syntax color highlighted PHP code for your articles, posts and tutorials. Line numbers optional! Covers display in both native php pages and CMS (e.g. Wordpress) posts.
How to get highlight_file and highlight_string to list your source code using CSS classes instead of inline styles; and reduce the size of your page.