Suppose I want to include a script in my website:
Now what I want to do is encrypt or encode, whatever you call it, the src i.e. “files/myfunction.js” and use that instead in the src of the script so that normal people can’t see it. So that it looks something like:
And the above script should still point to the myfunction.js file.
I know it’s not a good option but I just need answers that how can this be achieved?
I’ve seen numerous examples on stackoverflow but none point to what I want specifically.
Any help would be really appreciated. Thanks