msgbartop
More than the bits & pieces
msgbarbottom

18 Nov 08 Creating a Custom ServerSignature in Apache

By default, Apache reveals its version number a couple of ways.  Most often, the server version is returned in server response headers although it is also printed in the default footer of directory listings generated via the handy mod_autoindex module.

Revealing the server type and version number can make it easy to identify servers vulnerable to attacks affecting a given web server version.  By hiding or changing the server signature, a system wont be inherently more secure, but it will make it less visible considering most machines will more easily give up their version numbers.  Perhaps you want to display a message to the users in an auto-indexed sectioned of your website.  You can setup a "readme" file and tell apache to include it as a footer to auto-index pages with the ReadmeName directive.  What if you wanted to hard code a message, or even display a message after a readme file has been included?

Need to modify the Apache source...

(more...)

30 Jul 08 Removing duplicate functions from a (javascript) source file

The impetus for this solution was to eliminate the duplication of functions a javascript source file.  The concepts could be applied with little modification to any language with c-like syntax.   I chose to implement in PHP because that's what I happen to be working with these days though I do make use of a grep trick which means it would be easiest to run this on some type of posix system with grep & php.
(more...)