Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/old/webproxy.rc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

# list of blicked sites lifted from
# http://www.surferprotectionprogram.com/rules/sites-blocked.ini.txt

get=`{read}

switch ($get(2)){
case *tribalfusion.com/* *fastclick.net* *ar.atwola.com/* *.adknowledge.*
case *.adforce.* *.adsmart.* *.engage.* *.burstmedia.* *.networkadvertising.*
case *.realmedia.* *.centrport.* *.sabela.* *.247media.* *superstats.com/*
case *bfast.com/* *.focalink.* *.hitbox.* *adimages.* *.flycast.com*
case *.doubleclick.* *.valueclick.* *.extreme-dm.* *.avenuea.* *adcenter.*
case *.imgis.com/* *admonitor.net* *ad_click* *us.yimg.com/a/* *us.yimg.com/promotions/*
case *www.independent.co.uk/-images/buttons* *advertising.com* *data.coremetrics.com*
case *chicagotribune.com/liveads* *www.starmagazine.com/cgi-bin/clickthrough.cgi*
	exit 0
case *
	if (~ $get(2) PUT)
		sed '1,/^$/d' | hget -p /fd/0 $get(2)
	if not
		exec hget $get(2)
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.