2d8ef2f651
ModSecurity is an open source intrusion detection and prevention engine for web applications. It operates embedded into the web server, acting as a powerful umbrella - shielding applications from attacks. WWW: http://www.modsecurity.org/
19 lines
402 B
Bash
19 lines
402 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_security-enable,v 1.1.1.1 2003/11/19 01:33:26 david Exp $
|
|
|
|
MODULE=!!PREFIX!!/lib/mod_security.so
|
|
|
|
if [ `id -u` -ne 0 ]; then
|
|
echo "You must be root to run this script."
|
|
exit
|
|
fi
|
|
|
|
if [ ! -f ${MODULE} ]; then
|
|
echo "Cannot find mod_security module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling security module..."
|
|
/usr/sbin/apxs -i -a -n security ${MODULE}
|
|
fi
|