Hello, friend!
If you want to set the website access restriction on the HG8245H5, you can find the corresponding content on the forum. The detailed operations are as follows:
Log in to the WebUI of the device.
Click Advanced Configuration > Security Configuration tab, and choose Parental Control in the navigation tree on the left.
Enter the URL address(We can enter multiple URL addresses).

For more information, you can click: All about Huawei ONT
If you cannot implement the above method, you can disable it in baihosts and add a du line: 127.0.0.1 + URLs to be prohibited.
Thanks!