Map Module and Domains
Oleksandr V. Typlyns'kyi
wangsamp at gmail.com
Tue Jul 3 17:23:03 UTC 2012
Tomorrow Jul 4, 2012 at 03:01 SplitIce wrote:
> Ok, I was reading up on the map module and it seems the right way to do
> this, howeaver I really couldnt think of a way to do this (without just
> using the if alternative way).
> Blocking domains is what I want to do, my server blocks are per IP
> accepting everything for any domain, howeaver I want to filter certain
> [blocked] domains away by way of proxy passing or redirecting to another
You can use another server block for that domains.
server_name blocked.example.org *.filtered.net badsite.*;
More information about the nginx