[The University of Melbourne]

[Top] [Contents]
[Prev: 3. Samples]


Web Caching

Appendix A: Redirectors


Contents:
A.1. Local Ftp Mirror Use Enforcement.
A.2. Banner Ad Removal

A.1. Local Ftp Mirror Use Enforcement.

This depends on local access to a directory for stating and also that the files themselves will have unique names:

(Please see http://www.unimelb.edu.au/~ajh/redirector.tar.gz)

A.2. Banner Ad Removal

A home grown solution from George Hanspar:

#!/usr/bin/awk  -f
{
        gsub('http://ad\.doubleclick\.[^ ]*\.gif','http://localhost/images/ThreadLines/birds.gif');
        gsub('http://((www|images)\.yahoo|us\.yimg)\.com/(adv|promotions)/[^ ]*. gif', 'http://localhost/images/ThreadLines/birds.gif');
        print $0;
        fflush();
}

[Top] [Contents]
[Prev: 3. Samples]


Generated:  13 November, 1998
Copyright:  © 1998 The University of Melbourne
Maintainer: cwis@www.unimelb.edu.au