Block Chrome Extensions from launching on my site

As a web developer, is there any way to prevent the use of custom Chrome extensions on my site? those. title, meta tag, anything? Also, if there is, is there a way to redirect certain extensions?

+6
source share
2 answers

It's impossible. On a web server, you can only control what the browser allows you to control. Simply put, this means that you can control the data (HTML, javascript, headers, etc.) that you send back. What about that.

+6
source

Can't you create a Content Security Policy (CSP) and block embedded javascript and only allow javascript from specific domains? You can even create a CSP in report-only mode and collect abuse reports through something like https://report-uri.io/

-1
source

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


All Articles