Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: A simple script (adapted from vandan's spam blacklist)

Here's something I picked up in my /. travels, posted by vandan today. I modified it a little, but it still does basically the same thing. The blacklist is a text file in which each line is an IP address. I keep it in /etc/blacklist. Very simple, very small, and in the words of the original author, it works :)

(BEGIN SCRIPT)
#!/bin/bash

# variables
BLACKLIST=/etc/blacklist
IPTABLES=/sbin/iptables

Slashdot Top Deals

I have hardly ever known a mathematician who was capable of reasoning. -- Plato

Working...