diff --git a/src/etc/hoststated.conf b/src/etc/hoststated.conf
index 89e8e1a4..679a992c 100644
--- a/src/etc/hoststated.conf
+++ b/src/etc/hoststated.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: hoststated.conf,v 1.8 2007/11/19 15:09:32 reyk Exp $
+# $OpenBSD: hoststated.conf,v 1.9 2007/11/28 15:16:18 reyk Exp $
#
# Macros
#
@@ -93,10 +93,15 @@ relay sshgw {
protocol httpfilter {
protocol http
+ # Return HTTP/HTML error pages to the client
+ return error
+
# Block disallowed browsers
+ label "Please try a different Browser"
header filter "Mozilla/4.0 (compatible; MSIE *" from "User-Agent"
# Block some well-known Instant Messengers
+ label "Instant messenger disallowed!"
response header filter "application/x-msn-messenger" from "Content-Type"
response header filter "app/x-hotbar-xip20" from "Content-Type"
response header filter "application/x-icq" from "Content-Type"
diff --git a/src/etc/relayd.conf b/src/etc/relayd.conf
index 37707662..f6f1c57d 100644
--- a/src/etc/relayd.conf
+++ b/src/etc/relayd.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: relayd.conf,v 1.8 2007/11/19 15:09:32 reyk Exp $
+# $OpenBSD: relayd.conf,v 1.9 2007/11/28 15:16:18 reyk Exp $
#
# Macros
#
@@ -93,10 +93,15 @@ relay sshgw {
protocol httpfilter {
protocol http
+ # Return HTTP/HTML error pages to the client
+ return error
+
# Block disallowed browsers
+ label "Please try a different Browser"
header filter "Mozilla/4.0 (compatible; MSIE *" from "User-Agent"
# Block some well-known Instant Messengers
+ label "Instant messenger disallowed!"
response header filter "application/x-msn-messenger" from "Content-Type"
response header filter "app/x-hotbar-xip20" from "Content-Type"
response header filter "application/x-icq" from "Content-Type"