From 86fa33ed95cf5f6a59f555251ae099c5000fff3a Mon Sep 17 00:00:00 2001 From: Clement Laforet Date: Fri, 16 Apr 2004 16:20:16 +0000 Subject: Add mod_auth_useragent 1.0 mod_auth_useragent allows you to forbid clients based on their User-Agent by placing a single line in your Apache httpd.conf. Be aware that this is by no means a security measure as it is trivial to change your User-Agent in most browsers. WWW: http://tangent.org/index.pl?lastnode_id=478&node_id=423 --- www/Makefile | 1 + www/mod_auth_useragent/Makefile | 30 ++++++++++++++++++++++++++++++ www/mod_auth_useragent/distinfo | 2 ++ www/mod_auth_useragent/pkg-descr | 6 ++++++ 4 files changed, 39 insertions(+) create mode 100644 www/mod_auth_useragent/Makefile create mode 100644 www/mod_auth_useragent/distinfo create mode 100644 www/mod_auth_useragent/pkg-descr diff --git a/www/Makefile b/www/Makefile index 942a9df9a086..4ec1dde312e0 100644 --- a/www/Makefile +++ b/www/Makefile @@ -215,6 +215,7 @@ SUBDIR += mod_auth_pgsql2 SUBDIR += mod_auth_pwcheck SUBDIR += mod_auth_remote + SUBDIR += mod_auth_useragent SUBDIR += mod_authenticache SUBDIR += mod_backhand SUBDIR += mod_bandwidth diff --git a/www/mod_auth_useragent/Makefile b/www/mod_auth_useragent/Makefile new file mode 100644 index 000000000000..b550aca4020d --- /dev/null +++ b/www/mod_auth_useragent/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: mod_auth_useragent +# Date created: Apr 16 2004 +# Whom: Clement Laforet +# +# $FreeBSD$ +# + +PORTNAME= mod_auth_useragent +PORTVERSION= 1.0 +CATEGORIES= www +MASTER_SITES= http://download.tangent.org/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= Allows you to forbid clients based on their User-Agent + +WANT_APACHE= 13 +AP_FAST_BUILD= yes +AP_GENPLIST= yes +PORTDOCS= README faq.html + +.include +.include "${PORTSDIR}/www/apache2/Makefile.modules.3rd" +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include diff --git a/www/mod_auth_useragent/distinfo b/www/mod_auth_useragent/distinfo new file mode 100644 index 000000000000..94f2dff93ae9 --- /dev/null +++ b/www/mod_auth_useragent/distinfo @@ -0,0 +1,2 @@ +MD5 (mod_auth_useragent-1.0.tar.gz) = 1eec76c001085d1d1c21aae72ce40034 +SIZE (mod_auth_useragent-1.0.tar.gz) = 5243 diff --git a/www/mod_auth_useragent/pkg-descr b/www/mod_auth_useragent/pkg-descr new file mode 100644 index 000000000000..e8c24e8ee3a1 --- /dev/null +++ b/www/mod_auth_useragent/pkg-descr @@ -0,0 +1,6 @@ +mod_auth_useragent allows you to forbid clients based on their +User-Agent by placing a single line in your Apache httpd.conf. Be aware +that this is by no means a security measure as it is trivial to change +your User-Agent in most browsers. + +WWW: http://tangent.org/index.pl?lastnode_id=478&node_id=423 -- cgit v1.2.3