mirror of
https://github.com/firehol/firehol.git
synced 2024-06-28 18:02:33 +00:00
![Phil Whineray](/assets/img/avatar_default.png)
- Can still be installed just by copying firehol/firehol.in - CVS versions will not work any longer, so now following http://semver.org/ - Git commit hooks included to enforce version numbering across the various files, NEWS, ChangeLog, configure.ac and sbin/firehol.in - Replace HTML website copy with DocBook manual
27 lines
678 B
Bash
Executable File
27 lines
678 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $Id: adblock.sh,v 1.1 2003/10/07 23:42:17 ktsaou Exp $
|
|
# A script that will fetch the IPs of popular add servers.
|
|
#
|
|
# To use this, just put in your cron jobs, like this:
|
|
#
|
|
# 0 * * * * /path/to/adblock.sh >/etc/firehol/adblock-ips
|
|
#
|
|
# and then in your firehol.conf:
|
|
#
|
|
# source /etc/firehol/adblock-ips
|
|
#
|
|
# later in the config file you can use (for example)
|
|
#
|
|
# client http accept dst not "${ADSERVERS_IPS}"
|
|
#
|
|
# or even:
|
|
#
|
|
# blacklist full "${ADSERVERS_IPS}"
|
|
#
|
|
#
|
|
|
|
printf "ADSERVERS_IPS=\""
|
|
printf "%q " `wget -q -O - "http://pgl.yoyo.org/adservers/iplist.php?ipformat=plain&showintro=0" | egrep -e "^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\$"`
|
|
printf "\"\n"
|