diff options
author | will <will@FreeBSD.org> | 2000-10-28 05:11:12 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2000-10-28 05:11:12 +0000 |
commit | 7d80bc1aa71d18f6f5f3328fe93407facf89903b (patch) | |
tree | 9246a8186947d3989fe49041495bd9b2137e086e /www/mod_access_referer | |
parent | e40920e696ec1d225aa0cbf1f153c23a1048355c (diff) | |
download | FreeBSD-ports-7d80bc1aa71d18f6f5f3328fe93407facf89903b.zip FreeBSD-ports-7d80bc1aa71d18f6f5f3328fe93407facf89903b.tar.gz |
Add mod_access_referer 1.0.1, an Apache module that provides access
control based on Referer HTTP header.
PR: 22083
Submitted by: Alex Kapranoff <kappa@zombie.antar.bryansk.ru>
Diffstat (limited to 'www/mod_access_referer')
-rw-r--r-- | www/mod_access_referer/Makefile | 37 | ||||
-rw-r--r-- | www/mod_access_referer/distinfo | 1 | ||||
-rw-r--r-- | www/mod_access_referer/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_access_referer/pkg-descr | 22 | ||||
-rw-r--r-- | www/mod_access_referer/pkg-message | 14 | ||||
-rw-r--r-- | www/mod_access_referer/pkg-plist | 10 |
6 files changed, 85 insertions, 0 deletions
diff --git a/www/mod_access_referer/Makefile b/www/mod_access_referer/Makefile new file mode 100644 index 0000000..4ebad00 --- /dev/null +++ b/www/mod_access_referer/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: mod_access_referer +# Date created: 18 Oct 2000 +# Whom: Alex Kapranoff <kapr@crosswinds.net> +# +# $FreeBSD$ +# + +PORTNAME= mod_access_referer +PORTVERSION= 1.0.1 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= accessreferer + +MAINTAINER= kapr@crosswinds.net + +BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 + +APXS= ${LOCALBASE}/sbin/apxs + +DOCS= HACKING LICENSE.txt ChangeLog README TODO mod_access_referer.html + +do-build: + @cd ${WRKSRC} && \ + ${APXS} -c mod_access_referer.c + +do-install: + ${APXS} -i -A -n access_referer ${WRKSRC}/mod_access_referer.so +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/mod_access_referer +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_access_referer/ +.endfor +.endif + ${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/mod_access_referer/distinfo b/www/mod_access_referer/distinfo new file mode 100644 index 0000000..97a00a4 --- /dev/null +++ b/www/mod_access_referer/distinfo @@ -0,0 +1 @@ +MD5 (mod_access_referer-1.0.1.tar.gz) = 11a990882a1354eb12bf4e16da65c94f diff --git a/www/mod_access_referer/pkg-comment b/www/mod_access_referer/pkg-comment new file mode 100644 index 0000000..1280775 --- /dev/null +++ b/www/mod_access_referer/pkg-comment @@ -0,0 +1 @@ +An Apache module that provides access control based on Referer HTTP header diff --git a/www/mod_access_referer/pkg-descr b/www/mod_access_referer/pkg-descr new file mode 100644 index 0000000..6a57417 --- /dev/null +++ b/www/mod_access_referer/pkg-descr @@ -0,0 +1,22 @@ +mod_access_referer is an Apache module that understand the "Referer" +HTTP header, and grant or deny access based on the Web page that +refered the file. + +The "Referer" HTTP header is sent by the browser to the server, and it +contains the URL of the resource from where the URL of the asked +resource was obtained. The document "Hypertext Transfer Protocol -- +HTTP/1.1" RFC 2616 gives the following explanation: + "The Referer[sic] request-header field allows the client to + specify, for the server's benefit, the address (URI) of the + resource from which the Request-URI was obtained (the "referrer", + although the header field is misspelled.) The Referer + request-header allows a server to generate lists of back-links to + resources for interest, logging, optimized caching, etc. It also + allows obsolete or mistyped links to be traced for maintenance. The + Referer field MUST NOT be sent if the Request-URI was obtained from + a source that does not have its own URI, such as input from the + user keyboard." + +WWW: http://accessreferer.sourceforge.net/ + + -- Alex Kapranoff <kapr@crosswinds.net> diff --git a/www/mod_access_referer/pkg-message b/www/mod_access_referer/pkg-message new file mode 100644 index 0000000..c3b1678 --- /dev/null +++ b/www/mod_access_referer/pkg-message @@ -0,0 +1,14 @@ +************************************************************ +Please edit your apache.conf or httpd.conf to enable and +setup this module. + +You can always refer to the useful documents held in +${PREFIX}/share/doc/mod_referer_access/, where ${PREFIX} is +typically /usr/local. + +When it's done, do the following to take effect: + + apachectl configtest (and correct any errors reported) + apachectl restart + +************************************************************ diff --git a/www/mod_access_referer/pkg-plist b/www/mod_access_referer/pkg-plist new file mode 100644 index 0000000..9232c53 --- /dev/null +++ b/www/mod_access_referer/pkg-plist @@ -0,0 +1,10 @@ +libexec/apache/mod_access_referer.so +@exec %D/sbin/apxs -e -A -n access_referer %D/%F +@unexec %D/sbin/apxs -e -A -n access_referer %D/%F +share/doc/mod_access_referer/HACKING +share/doc/mod_access_referer/LICENSE.txt +share/doc/mod_access_referer/ChangeLog +share/doc/mod_access_referer/README +share/doc/mod_access_referer/TODO +share/doc/mod_access_referer/mod_access_referer.html +@dirrm share/doc/mod_access_referer |