'Disable the Layer Preview in Geoserver

How can I remove/disable the Layer Preview link in Geoserver? I don't want normal user to login their account and go to Layer Preview to download the data, such as geojson data. I can't disable the WFS as well, i need to use WFS method. Can anyone give me some advise?

enter image description here



Solution 1:[1]

From data under security section in the far left bottom, disable read access for whatever role you want. Add new security rule, choose a path -Workspace + Access mode(Read, Write)- and assign role to that rule.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ca5p3r