X-Git-Url: http://pileus.org/git/?p=vpaste;a=blobdiff_plain;f=index.cgi;h=4b587dc4541966806409feb004e5eecd2da9f297;hp=29bdb1d8cdb0cdce662bdd89e60b2d554fcae121;hb=8ea90e3037f45638d9edf7e9934cc1d2446016b6;hpb=37eb35361390ffd597c653f15c5147856d40e7b3 diff --git a/index.cgi b/index.cgi index 29bdb1d..4b587dc 100755 --- a/index.cgi +++ b/index.cgi @@ -153,7 +153,9 @@ function do_upload { body=$(cat -) spam=$(echo -n "$body" | cut_file "ignoreme") text=$(echo -n "$body" | cut_file "(text|x)") + bans=$(echo -n "$REMOTE_ADDR" | grep -f blacklist) [ ! -z "$spam" ] && message "Spam check.." + [ ! -z "$bans" ] && message "You have been banned" [ -z "$text" ] && message "No text pasted" # Format and save message @@ -162,6 +164,7 @@ function do_upload { vim: $(get_modeline) Date: $(date -R) From: $REMOTE_ADDR + User-Agent: $HTTP_USER_AGENT $text EOF @@ -324,6 +327,7 @@ function do_help { htaccess robots.txt sitemap.xml + blacklist
Patches
2html.patch
Subversion