mrvivacious / PorNo-_Porn_Blocker

Porn blocker that redirects users from porn to positive, fulfilling websites

Home Page:http://pornblockeris.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable Bing safesearch (email)

mrvivacious opened this issue · comments

From email (Sep 5 2021):

you can still watch porn on bing.

Is your feature request related to a problem? Please describe.
Enable safe mode on Bing.

Describe the solution you'd like
Default Bing to safe mode (Google search example).

Describe alternatives you've considered
None.

Additional context
N/a.

Summary

As a user that uses the Bing search engine
I want to not see porn on Bing
So that I am better off in my desire to not view porn.

Work description

  • Can we enable safemode on Bing thru URL manipulation?
  • If no, is there some Bing api to interact with?

Exit criteria

Safemode is default on Bing.
Feature is released in ChrEx / Android update

Adding &adlt=strict to bing search url enables safemode to the strictest setting.

Found via Palo Alto Networks

Work description:

Chrome extension:
Clone this method and its usages but with Bing instead of Google

Android app:
Same thing for this method

Update lists based on emails. Then release updates to each store.

✅ Chrome extension defaults bing to safemode (commit)

Android draft:

private void applySafeModeToUnsafeBingSearch(String url) {
    Log.d(TAG, "redirecting to safe bing search");
    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://" + url + "&adlt=strict"));

    intent.putExtra(Browser.EXTRA_APPLICATION_ID, "com.android.chrome");
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
}

public boolean isUnsafeBingSearch(String url) {
    return url.contains("bing.com/search?") && !url.contains("&adlt=strict");
}