You can keep only a few websites accessible and block the rest of the websites on the iPhone too.
For that, you just need to follow along with the steps mentioned here:
If you want to block adult content on your iPhone but do not want to go through the lengthy process of manually putting particular websites on the blocked list, then the settings of the iPhone provide the option to do that too.
See also: How To Sign A PDF Document On iPhone 11 Series