awstats workaround for custom delimiter tab methodurl bug

For some sites i am using the venerable awstats to keep track of web site statistics; and came across a problem today:

If your apache LogFormat is using a \t (tab) to separate fields you may notice how awstats does not parse %methodurl correctly – instead it looks like your two top pages are called HTTP/1.0 and HTTP/1.1. Read more for a workaround.

[Read more...]

A simple Bot trap using robots.txt

Setup a simple Bot Trap for your website or web application that can enhance the security of your server and prevent malicious bots or script kiddies from poking around by luring them into a trap and banning their a**es for x amount of minutes, or else.

[Read more...]

Apache+SSL, PHP, and MySQL

General Information

I’m sure many of you have been wondering how people host secure sites using Secure Sockets Layer (SSL). This guide will show you how to set up a web server with SSL, PHP, and MySQL support.

[Read more...]

Apache, PHP, and MySQL

General Information

This guide will teach you how to set up a basic web server with Apache, PHP support, and MySQL for the database.

[Read more...]

Chrooting Apache and PHP

General Information

Chrooting has been around for a long time now. Chrooting makes a program believe that the root of the file system is higher up in the hierarchy. For example, if I wanted to create a chroot in /chroot/httpd, a program executed from within the chroot would believe that “/chroot/httpd” was actually “/”. There in lies the beauty as the program can’t reach any files outside “/chroot/httpd”. Security of the server as a whole is increased due to the fact that the system binaries are off limits. In addition, chroots usually only have the bare minimum files inside, so exploits have a harder time breaking in.

[Read more...]

Secure Apache 1.3

General Information

Apache is the most popular web server in use today. But, not everybody that sets up their Apache server takes the necessary steps to secure it properly from intruders. This guide will show you some good security changes to make to your Apache installation.

[Read more...]

Install Apache2

General Information

Installing a web serving application is usually one of the most essential things on a FreeBSD server. In this short tutorial, I shall explain the basics of installing and configuring Apache 2.0.52 (will also work with previous builds of Apache 2.x but you should be using the latest version).

[Read more...]

Protect Apache Directories

General Information

In order to password protect a website, or part of a website, we need to create a .htaccess file and a .htpasswd file. These are the files that Apache reads from to see who is allowed in the site. This guide will show you how to setup a website directory with password protection.

[Read more...]