How can you setup firefox to disable connections to third party domains
To easy understand what i am saying, i will give you this example, you visit domain.com but on this page there are other things from external domains other than domain.com that firefox fetches/connects to - cdn.blabla.com; third-party.socialwebsites.com, etc. What i want, is to simply not connect to any other domain except what i typed in url bar. I understand it can break pages but i dont care.
A while ago, setting permission.default.images to 2 somehow worked and stopped loading of external content. Disabling prefetch/preconnect/predict/predictor does nothing.
p.s. i dont want to use extensions, only about config.
No offense intended, you do you and you don't owe me any explanations, but I always find these types of post hilarious.
what most people do is wrong in most cases. elaboration goes nowhere and in general just derails the topic more.
That setting was probably only blocking external images and not scripts or fonts in the first place. Why can't you just use ublock?
Just use an ad blocking DNS. It might not block every other domain from connecting but it blocks most of what you want to block.
waste of time. cat and mouse game.
Without using an extension like NoScript (which does exactly what you want) the best idea I have for you is go into your hosts.txt file and block the individual domains you want to block one by one. I don't know of any way to just blanket block all third party connections.
Plus, as a NoScript user, I can tell you from experience that a very large number of the sites you visit will be unusable without at least some of those 3rd party connections. The "cdn" in your cdn.blabla.com example stands for Content Delivery Network. If you block that domain, then the web page will not show any content from that network, which may well include the text, images, or video you want to see there.
This simply won't work.
domain.com sends you an HTML, which is empty. The HTML defined a
<style>tag which your browser will fetch from cdn.com. Do you want to block it? Cool, no CSS for you.It also defined a
<script>tag which your browser will fetch the React library from cdn.com. Do you want to block it? Cool, no content for you.The whole page is just one
<div id="root"></div>.I use noscript extensively and an approach like yours will break 99.9% of the websites. Everyone nowadays uses CDNs and all you'll see is a broken HTML page with no images.
Probably if there's a way to break the browser like that, you'll be only be able to browse sites hosted on neocities
The easy solution is to stop visiting domain.com that so annoys you, and use another site, that doesn't annoy you.
it was an example, this relates to any domain you visit.
I know it was an example. And so was my answer...
It would be nice if more sites didn't connect to a third party, but those you use, do... most won't work, if you, in any way, block them.