Danny Sinang wrote:

> How can I include or state in my custom "Access Denied" page the
> site that was just blocked ?

Use a text with %U where you want the site URL printed.

% codes available in error pages: (from src/errorpage.c)

 %B - URL with FTP %2f hack
 %c - Squid error code
 %d - seconds elapsed since request received
 %e - errno
 %E - strerror()
 %f - FTP request line
 %F - FTP reply line
 %g - FTP server message
 %h - cache hostname
 %H - server host name
 %i - client IP address
 %I - server IP address
 %L - HREF link for more info/contact
 %M - Request Method
 %p - URL port #
 %P - Protocol
 %R - Full HTTP Request
 %S - squid signature from ERR_SIGNATURE
 %s - caching proxy software with version
 %t - local time
 %T - UTC
 %U - URL without password
 %u - URL without password, %2f added to path
 %w - cachemgr email address
 %z - dns server error message

---
Henrik Nordstrom
Spare time Squid hacker

Reply via email to