#!/bin/bash

if [ "$(curl  -IL http://localhost/bin/cc 2>&1 | grep -Eo "406|403|404" )" ]; then
        echo "OK. Modsec configured"
        exit 0
else
        echo "CRITICAL: Modsec not configured"
        exit 2
fi
