Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2008 11:07:54 GMT
From:      Ditesh Shashikant Gathani <ditesh@gathani.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/119999: New port: www/pear-FloodControl PEAR classes to detect and protect from attempts to flood a site
Message-ID:  <200801261107.m0QB7smD062634@www.freebsd.org>
Resent-Message-ID: <200801261110.m0QBA1ns068547@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         119999
>Category:       ports
>Synopsis:       New port: www/pear-FloodControl PEAR classes to detect and protect from attempts to flood a site
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 26 11:10:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Ditesh Shashikant Gathani
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:
FreeBSD neela.qubeconnect.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

>Description:
The HTTP_FloodControl package can be used to detect and protect a
Web site from attempts to flood it with too many requests. It also allows to
protect the site from automatic downloading many pages or files from the same
IP address, session ID or other unique identifier.

The detection of flood is determine according to a set of parameters indicating
the maximal allowed number of requests for the certain time interval. It is
possible to set several parameters at once in order to perform more effective
protection.

The package uses various storage containers (regular files, DB, MDB, MDB2) to
handle counter logs.

WWW: http://pear.php.net/package/HTTP_FloodControl/

>How-To-Repeat:
Not applicable.
>Fix:
shar file, as attached.

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./pkg-descr
#	./distinfo
#	./Makefile
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XThe HTTP_FloodControl package can be used to detect and protect a
XWeb site from attempts to flood it with too many requests. It also allows to
Xprotect the site from automatic downloading many pages or files from the same
XIP address, session ID or other unique identifier.
X
XThe detection of flood is determine according to a set of parameters indicating
Xthe maximal allowed number of requests for the certain time interval. It is
Xpossible to set several parameters at once in order to perform more effective
Xprotection.
X
XThe package uses various storage containers (regular files, DB, MDB, MDB2) to
Xhandle counter logs.
X
XWWW: http://pear.php.net/package/HTTP_FloodControl/
X
X- Ditesh Shashikant Gathani
Xditesh@gathani.org
END-of-./pkg-descr
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (PEAR/HTTP_FloodControl-0.1.1.tgz) = 848fc5590d607b12f480faaf84fbf7c5
XSHA256 (PEAR/HTTP_FloodControl-0.1.1.tgz) = 60b7612be832284c6c40355d82d7664e7b291fbea9e1d0da925f7ef275acba4c
XSIZE (PEAR/HTTP_FloodControl-0.1.1.tgz) = 15519
END-of-./distinfo
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# Ports collection makefile for:  pear-HTTP_FloodControl
X# Date created:			  22 Jan 2007
X# Whom:				  Ditesh Shashikant Gathani <ditesh@gathani.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	HTTP_FloodControl
XPORTVERSION=	0.1.1
XCATEGORIES=	www pear
X
XMAINTAINER=	ditesh@gathani.org
XCOMMENT=	PEAR classes to detect and protect from attempts to flood a site
X
XBUILD_DEPENDS=  ${PEARDIR}/HTTP.php:${PORTSDIR}/www/pear-HTTP
XRUN_DEPENDS=    ${BUILD_DEPENDS}
X
XCATEGORY=	HTTP
XFILES=		FloodControl.php FloodControl/Container.php \
X		FloodControl/Container/DB.php FloodControl/Container/File.php \
X		FloodControl/Container/MDB.php FloodControl/Container/MDB2.php
X
XLATEST_LINK=	pear-HTTP_FloodControl
XDOCS=		README LICENSE
XOPTIONS=	DB "Enable PEAR::DB support" Off \
X		MDB "Enable PEAR::MDB support" Off \
X		MDB2 "Enable PEAR::MDB2 support" Off
X
Xpost-extract:
X	${MKDIR} ${WRKSRC}/docs
X	${MV} ${WRKSRC}/README ${WRKSRC}/LICENSE ${WRKSRC}/docs
X	${MV} ${WRKDIR}/package2.xml ${WRKDIR}/package.xml
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_DB)
XRUN_DEPENDS+=	${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB
X.endif
X
X.if defined(WITH_MDB)
XRUN_DEPENDS+=	${PEARDIR}/MDB.php:${PORTSDIR}/databases/pear-MDB
X.endif
X
X.if defined(WITH_MDB2)
XRUN_DEPENDS+=	${PEARDIR}/MDB2.php:${PORTSDIR}/databases/pear-MDB2
X.endif
X
X.include "${PORTSDIR}/devel/pear/bsd.pear.mk"
X.include <bsd.port.post.mk>
END-of-./Makefile
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801261107.m0QB7smD062634>