Testing safe browsing

4,338 views
Skip to first unread message

Chamal De Silva

unread,
May 28, 2010, 12:47:31 AM5/28/10
to Chromium-dev
Hi,

Is there a way to test options such as safe browsing locally on my pc.
For example can I add one of my local urls such as http://localhost/unsafe/home.html
to unsafe list of chrome and conduct my testing.

Thanks & regards,
Chamal.

Eric Roman

unread,
May 28, 2010, 4:05:41 PM5/28/10
to chamal....@gmail.com, Chromium-dev
The easiest way to test blocking a page, is to use an existing URL
from the malware list, and simply remap your DNS to point that domain
to localhost.

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
>

Ian Fette

unread,
Jun 1, 2010, 9:00:24 PM6/1/10
to ero...@chromium.org, chamal....@gmail.com, Chromium-dev
There is no easy way as Eric points out. You don't need to modify your hosts page though, ianfette.org is safe.

If you are trying to do your own implementation of SafeBrowsing, and not using Chrome's, we are working on releasing a test suite for the protocol shortly.

Chamal De Silva

unread,
Oct 18, 2013, 1:57:59 AM10/18/13
to chromi...@chromium.org, ero...@chromium.org, chamal....@gmail.com
Hi,

I ianfette.org is no longer listed as a malware page. Chrome displayed malware blocking page for ianfette.org few minutes back. But now it does not show.

Google safe browsing diagnostics page says "This site is not currently listed as suspicious."
Reply all
Reply to author
Forward
0 new messages