On GrapheneOS there is a Network permission to forbid access completely. Or you can also use something like NetGuard[1], to have more flexible controls.
The internet permission never meaningfully protected anything on stock android since you could always just send an intent to the browser with the payload stored in the GET parameters.