php - How to invoke js without displaying the code -


I was thinking, I use a JS tracking code (analytics) in some websites to track my traffic. Want to But I do not want people to see the source code of the site that I have embedded the JS tracking code there.

Is this possible? Probably using an Apache / PHP move?

Thanks,

Roy.

No, this is not possible, because at least some of the browsers to execute any code It should appear initially, even if the code itself is to get the tracking code itself.

In addition to this, all modern web developer tools provide access to any code that anyone can use to try to load strictly to watch anything.

Another important question is why do you want to hide it, again people have to track?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -