For example, here are two existing rules in the malware list that can be used:
http://malware.testing.google.test/testing/malware/*
http://ianfette.org/*
So now if you edit your HOSTS file to map ianfette.org to localhost,
then you could type the URL http://ianfette.org/unsafe/home.html to
load your unsafe page from localhost, and it will be blocked.
Alternately, maybe you only want certain paths to be blocked... in
this case you can map malware.testing.google.test to localhost, and
then place your files at http://localhost/testing/malware/*.
One more thing: instead of editing your HOSTS file, you can simply
pass a chrome command line flag like:
--host-resolver-rules="MAP malware.testing.google.test 127.0.0.1"
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
>