0

Trying to view the source code for github.your_company.com/stafftools/reports/dormant_users.js.

enter image description here

When I go to the link, it simply downloads a .csv file immediately, with no activity in the Chrome DevTools Network tab. I have tried disabling javascript, cURLing and so forth but nothing works.

Really surprised since from every SO post I've come across, they say it is impossible to hide the source code for .js files. How do I protect javascript files? Just thinking that this would be a really informative counter-example

Abderrahmane TAHRI JOUTI
  • 3,514
  • 2
  • 26
  • 43
element_j
  • 103
  • 1
  • 1
  • 15
  • They can name the file whatever they want, and it's not a ` –  Jan 08 '18 at 20:29
  • Possible duplicate of [How can I obfuscate (protect) JavaScript?](https://stackoverflow.com/questions/194397/how-can-i-obfuscate-protect-javascript) – Abderrahmane TAHRI JOUTI Jan 08 '18 at 20:30
  • So you're saying it's actually a .csv? Why name it .js then? – element_j Jan 08 '18 at 20:30
  • @element_j you cannot hide javascript code, you can make it difficult to read, but you cannot hide it. try to read the provided answers a bit more thoroughly. – Abderrahmane TAHRI JOUTI Jan 08 '18 at 20:32

0 Answers0