Webhosting where internal scripts are not accessible

Hello
I am uploading static website to web hosting.
It works fine, however usually when you upload files to web server, it does not allow you to access server script (such as mail.js …etc)
But here, if I append the url with mail.js it just downloads it.
How can I prevent this from happening so people don’t access internal server scripts, but only the site contents.
Thanks

Hi SnakeEyes

You can setup permissions to specific directory/folder in your files
Here is a doc: https://backendless.com/docs/js/files_files_security.html

Regards, Vlad