Can VCL files use includes?

Svein Skogen (listmail accont) svein-listmail at
Fri Apr 10 12:59:47 CEST 2009

Hash: SHA1

Can a VCL file use includes in blocks?

Reason I'm asking, is that among the things I am using my varnish setup
to do, is to block a long list of user-agents (of known address-scraper
bots for spammers) by giving them a nice 403.

However, having this list in my main config makes the main config file
very long, thus less readable, and as we all know: Configfiles that are
unreadable may cause security grief. :p

So, what I want to do, is to move such blocklists out to their own
files, and simply use include-statements (preferrably withing the
respective blocks) to read them.

Is this possible?


- --
- --------+-------------------+-------------------------------
  /"\   |Svein Skogen       | svein at
  \ /   |Solberg Østli 9    | PGP Key:  0xE5E76831
   X    |2020 Skedsmokorset | svein at
  / \   |Norway             | PGP Key:  0xCE96CE13
        |                   | svein at
 ascii  |                   | PGP Key:  0x58CD33B6
 ribbon |System Admin       | svein-listmail at
Campaign|     | PGP Key:  0x22D494A4
        |msn messenger:     | Mobile Phone: +47 907 03 575
        |svein at | RIPE handle:    SS16503-RIPE
- --------+-------------------+-------------------------------
                     Picture Gallery:

- ------------------------------------------------------------
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


More information about the varnish-misc mailing list