How to restrict any user to view config.json page

Viewed 13

There is a file in our website called config.json which has a list of all apis , and anyone can easily see it through directory browsing , so is there any way we can restrict the users if they try to open any file inside assets folder by hitting the url directly through browser, they should automatically redirect to index.html page.we are using angular with apache2, i have attached screenshots below.enter image description here

enter image description here

0 Answers
Related