Web

Blocking Unwanted Connections with a Hosts File

You can use a HOSTS file to block ads, banners, 3rd party Cookies, 3rd party page counters, web bugs, and even most hijackers. This is accomplished by blocking the connection(s) that supplies these little gems. This is a simple script that downloads a new hosts file for your operating system and redirects all requests for […]

Read More
Web

How to Remove Dashboard widgets in WordPress

This is a quick way to remove dashboard widgets in WordPress. These are some of the widgets I hide on one of my WordPress installations by adding these lines to the theme functions.php file. To hide other widgets, view the source code for the Dashboard and search for their label value. add_action(‘admin_init’, ‘rw_remove_dashboard_widgets’); function rw_remove_dashboard_widgets() […]

Read More
Web

PHP script to recreate empty WordPress post slugs

This post describes how I managed to recreate empty WordPress 3.0 permalink post slugs with the post title of the blog posts using a slightly modified version of the script found on another blog post named Bulk update post slugs in a wordpress blog. This script became handy since some of my post slugs was […]

Read More
Web

Redirect failing URLs to other webserver

A typical FAQ about URL rewriting is how to redirect failing requests on webserver A to webserver B. Usually this is done via ErrorDocument CGI-scripts in Perl, but there is also a mod_rewrite solution. But notice that this performs more poorly than using an ErrorDocument CGI-script! Place this in your httpd.conf og .htaccess file on […]

Read More