πŸ“œ ⬆️ ⬇️

Setting Safebrowsing from Yandex to Firefox

A small disclaimer.

Everything below can be found in the version of Firefox that the company distributes - by installing this same version or by opening the distribution and pulling the distribution.ini file. This file is also available on GitHub, but has not been updated for more than two years (at the time of publication) and now the settings there are not complete.

I am not quite aware of why the company does not update this data in the official Mozilla repository (perhaps because the assembly and packaging is happening "inside" on the company's facilities or in Mozilla the policy of working with partners has changed).
')
I hope someone this information will be useful and save a couple of minutes. I also apologize for a little messy presentation of information.

A little about Safebrowsing technology in the Yandex blog.

To the point!

Answering a reasonable question why then not to use the branded version - I will say that I use Nightly, plus my vision of the beauty does not always coincide with the vision of the company (with all due respect to the company).

I also assume that it will work for other browsers built on the basis of Firefox.

We go to about: config, agree with the fact that we will be careful, then create and modify the parameters listed below.
Create parameters (these are normal string parameters) and assign them a value:

browser.safebrowsing.provider.yandex.lists – ydx-unwanted-shavar,ydx-malware-shavar,ydx-phish-shavar,ydx-badbinurl-shavar,ydx-unwantedbinurl-shavar browser.safebrowsing.provider.yandex.updateURL – https://sba.yandex.net/downloads?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2 browser.safebrowsing.provider.yandex.gethashURL – https://sba.yandex.net/gethash?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2 browser.safebrowsing.provider.yandex.reportURL – https://sba.yandex.net/report? 

In Firefox version 46 or higher, the parameter is not relevant and is not used (browser.safebrowsing.downloads.remote.url is used instead of it)

 browser.safebrowsing.appRepURL – https://sba.yandex.net/clientreport/download?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2 

The parameters below already exist; they need to be edited by assigning the required values:

 browser.safebrowsing.downloads.remote.url – https://sba.yandex.net/clientreport/download?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2 browser.safebrowsing.reportPhishURL – https://webmaster.yandex.ru/delspam.xml?l10n=ru&request=Page%20looks%20like%20phishing& browser.safebrowsing.reportPhishMistakeURL – https://webmaster.yandex.ru/delspam.xml?l10n=%LOCALE%&request=Page%20looks%20like%20not%20phishing& browser.safebrowsing.reportMalwareMistakeURL – https://webmaster.yandex.ru/delspam.xml?l10n=%LOCALE%&request=Page%20looks%20like%20not%20malware& urlclassifier.downloadBlockTable – ydx-badbinurl-shavar,ydx-unwantedbinurl-shavar urlclassifier.malwareTable – ydx-malware-shavar,ydx-unwanted-shavar,test-malware-simple,test-unwanted-simple urlclassifier.phishTable – ydx-phish-shavar,test-phish-simple 

Do not forget to clear the contents of the safebrowsing folder in your profile, but this is not necessary.
A nice bonus is the synchronization of these parameters via Mozilla Sync (if used) to all devices used.
Also, in the case of which, all these settings can be reset by going to about: config and selecting the desired line, select β€œReturn default value”

To speed up, you can create user.js in the profile folder and the next time you start the browser, these settings are imported.

user.js
 user_pref("browser.safebrowsing.provider.yandex.lists", ydx-unwanted-shavar,ydx-malware-shavar,ydx-phish-shavar,ydx-badbinurl-shavar,ydx-unwantedbinurl-shavar); user_pref("browser.safebrowsing.provider.yandex.updateURL", https://sba.yandex.net/downloads?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2); user_pref("browser.safebrowsing.provider.yandex.gethashURL", https://sba.yandex.net/gethash?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2); user_pref("browser.safebrowsing.provider.yandex.reportURL", https://sba.yandex.net/report?); // Firefox  46   –       //(   browser.safebrowsing.downloads.remote.url) user_pref("browser.safebrowsing.appRepURL", https://sba.yandex.net/clientreport/download?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2); user_pref("browser.safebrowsing.downloads.remote.url", https://sba.yandex.net/clientreport/download?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2); user_pref("browser.safebrowsing.reportPhishURL", https://webmaster.yandex.ru/delspam.xml?l10n=ru&request=Page%20looks%20like%20phishing&); user_pref("browser.safebrowsing.reportPhishMistakeURL", https://webmaster.yandex.ru/delspam.xml?l10n=%LOCALE%&request=Page%20looks%20like%20not%20phishing&); user_pref("browser.safebrowsing.reportMalwareMistakeURL", https://webmaster.yandex.ru/delspam.xml?l10n=%LOCALE%&request=Page%20looks%20like%20not%20malware&); user_pref("urlclassifier.downloadBlockTable", ydx-badbinurl-shavar,ydx-unwantedbinurl-shavar); user_pref("urlclassifier.malwareTable", ydx-malware-shavar,ydx-unwanted-shavar,test-malware-simple,test-unwanted-simple); user_pref("urlclassifier.phishTable", ydx-phish-shavar,test-phish-simple); 

Source: https://habr.com/ru/post/277521/


All Articles