Updated: 15 November 2026 · Applies to: DirectAdmin with Webalizer (Apache symlink behaviour tested on Apache 2.4)

DirectAdmin writes each domain's Webalizer statistics to a stats folder next to public_html, which is not reachable from the web. To view them in a browser without logging in to DirectAdmin, create a symbolic link inside public_html that points to that folder, then protect it with a password.

Where the stats are

According to DirectAdmin, Webalizer is the default statistics program and writes its HTML reports to:

/home/USERNAME/domains/example.com/stats

The website itself is served from /home/USERNAME/domains/example.com/public_html, so the stats sit one level above the web root.

Create the link over SSH

  1. Log in over SSH as the account user, not as root (the link must belong to the same user as the stats folder, see below).
  2. Go to the website folder. Replace USERNAME and example.com with your own.
cd /home/USERNAME/domains/example.com/public_html
  1. Create a link called webstats that points to the stats folder:
ln -s ../stats webstats
  1. Open https://example.com/webstats/ in your browser.

According to DirectAdmin, the domain's statistics page in the panel can also create this ../stats link for you. If the server uses AWStats instead of Webalizer, the link points to ../awstats.

If you get 403 Forbidden

Apache often allows symbolic links only when the link and its target have the same owner (SymLinksIfOwnerMatch). In our test, a link owned by the account user loaded normally, while the same link owned by root returned 403 with this line in the error log:

AH00037: Symbolic link not allowed or link target not accessible

Fix it by removing the link and creating it again as the account user, not as root. You can check the owner with:

ls -l webstats

Protect the folder

Once linked, anyone who knows the address can read your statistics, including visitor IP addresses and the pages and files people requested. Add a password:

  1. In DirectAdmin, open Password Protected Directories.
  2. Choose the public_html/webstats folder, turn protection on, and add a username and password.
  3. Open the address again in a private browser window to confirm it now asks for a login.

Remove public access

Delete the link from public_html. This removes only the link; the stats folder and its reports stay where they are.

rm webstats

Good to know

Official documentation: DirectAdmin, website statistics.

Related services

Server management

on-demand administration, hardening, migrations and monitoring.

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Was this answer helpful?

Still stuck? Open a ticket