Security/Safe Browsing/V4 Implementation: Difference between revisions

Jump to navigation Jump to search
→‎Try it on!: improve explanation on how to activate v4
(fix inversion malwareTable / phishTable)
(→‎Try it on!: improve explanation on how to activate v4)
Line 20: Line 20:
# Rebuild and check if config.status has something like 'MOZ_GOOGLE_API_KEY': b'AIzaSooxxxxoxoxoxoxooxx'
# Rebuild and check if config.status has something like 'MOZ_GOOGLE_API_KEY': b'AIzaSooxxxxoxoxoxoxooxx'


= Try it on! =
= Try Google Safe Browsing v4! =
V4 has been function ready (but pref'ed off) since Bug 1312339 was resolved. By changing preferences
v4 tables are suffixed by "-proto", to indicate that the table should be updated and completed via protobuf: goog-phish-proto, goog-unwanted-proto and goog-malware-proto.  
# '''urlclassifier.phishTable''' to '''goog-phish-shavar,goog-phish-proto,test-phish-simple'''  
To use Google Safe Browsing v4, change preferences as follows:
# '''urlclassifier.malwareTable''' to '''goog-malware-shavar,goog-malware-proto,goog-unwanted-shavar,goog-unwanted-proto,test-malware-simple,test-unwanted-simple'''
 
# '''urlclassifier.phishTable''' to '''goog-phish-proto'''  
# '''urlclassifier.malwareTable''' to '''goog-malware-proto'''
# '''browser.safebrowsing.provider.google4.gethashURL''' to '''https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_API_KEY%'''
# '''browser.safebrowsing.provider.google4.gethashURL''' to '''https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_API_KEY%'''
# '''browser.safebrowsing.temporary.take_v4_completion_result''' to '''true'''
# '''browser.safebrowsing.temporary.take_v4_completion_result''' to '''true'''
you can turn on v4 feature (while v2 is still up and running).


If you want to get rid of v2 and use v4 only, you could also set the following preferences to empty string
To use v4 while v2 is still up and running, set the names of both v2 and v4 tables:
 
# '''urlclassifier.phishTable''' to '''goog-phish-proto,goog-phish-shavar'''
# '''urlclassifier.malwareTable''' to '''goog-malware-proto,goog-malware-shavar'''
 
If you want to completely get rid of v2, you could also set the following preferences to empty string
 
# '''browser.safebrowsing.provider.google.lists''' to '''""'''
# '''browser.safebrowsing.provider.google.lists''' to '''""'''
then you are ready to go!
then you are ready to go!

Navigation menu