I want to keep browsing
is incompatible with
disable uploading files to internet
Here is why:
- Any website you browse involves two-way traffic: your computer sends data to the website, and the website sends data back to your computer.
- A user who is "just browsing" a website could type in anything they want. they could, if they wanted, run
base64
to encode any arbitrary file (image, video, etc.) into ASCII text, and paste that on any website that isn't blocked.
- You can install a web filter that attempts to block out many sites where it is possible to upload stuff, but for every site that your filter blocks, I can create a new website or virtual machine somewhere that lets me upload files, and upload any file by copy and paste, base64, or any other method.
- You can install a whitelist that only lets you access a pre-defined list of websites, but this has several problems. Firstly, there are many sites that you might not think of when you create the whitelist that you DO want to browse to, and you'll have to add them to the whitelist manually as you discover these sites. Secondly, even if you whitelist a certain site, that site may have some feature or section you are not aware of, which lets you upload stuff still. They might even introduce this as a "new" feature after you add it to the whitelist.
It is not possible in the general case to absolutely prevent any file on your system from being uploaded to the internet, without disconnecting entirely from the internet.
iptables
, but you would also not be able to initiate any downloads--you would not even be able to load a web page--since that requires uploading requests to a server. I recommend editing your question to provide more details about your needs. Also, you should decide whether you want this question here on Ask Ubuntu, or on Super User.