I don't know what you mean exactly by 'mixing in the domain'. You would need to put your black and/or white list configuration somewhere. You could use Node2Bean to configure the filter with lists per site, but if you require another workflow you get also store that information somewhere else and get it from there into the filter yourself.
Then in the filter's doFilter method you'd get the Site from the aggregation state and I'd probably use Site#getName() as the key for the lookup of the country blocking lists. By the way, I think you'll want to insert your filter before the cache filter in order to check the country before hitting the cache. :) Another solution might be to keep this out of Magnolia and for instance use something like mod_maxminddb with Apache httpd in front of Magnolia: http://maxmind.github.io/mod_maxminddb/ You'd have to do the configuration per site in Apache configuration then though. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=9c45b486-4d44-400d-9597-d369836c428e ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
