I have an outmost javascript record for my website. we wish to have a record operative upon any page we need it to, though we do not wish someone to download it. How do we do that?
I have an outmost javascript record for my website. we wish to have a record operative upon any page we need it to, though we do not wish someone to download it. How do we do that?
You can prevent people navigating a directory and downloading the JavaScript file using .htaccess configuration if your on Apache web server, although that won’t prevent someone reading the file. Since the path to the file is available in any HTML page you include it in. If your intention is to hide the contents of the JavaScript file, I’d recommend searching fro a code obfuscation tool on Google.