diff --git a/babel.html b/babel.html index 087b773..fc01bf1 100755 --- a/babel.html +++ b/babel.html @@ -3,8 +3,16 @@ <% echo -en "Content-Type: text/html\r\n\r\n" HOSTNAME="$(uci -q get "fff.system.hostname")" +lockfile="/tmp/simple.babelweb.lock" + +if [ -e $lockfile ];then + if [ 30 -gt $(( $(date +%s) - $(date -r $lockfile +%s) )) ];then + echo "only one access per minute!!" && exit + fi +fi data=$(echo "dump" | nc ::1 33123) +touch $lockfile %>