Jump to content


Photo

how to hide script


  • Please log in to reply
3 replies to this topic

#1 azcodon

azcodon

    GMC Member

  • GMC Member
  • 193 posts
  • Version:Unknown

Posted 21 February 2012 - 04:58 AM

you open the browser then view source code.you can see src='html5game/test.js
then you type 'www.webgame.com/html5game/test.js'
its show code of js
how to hide this code?
  • 0

#2 Artaex Media

Artaex Media

    Artaex Media

  • GMC Member
  • 1531 posts
  • Version:Unknown

Posted 21 February 2012 - 07:25 AM

You can't.
  • 0

#3 iSeiren

iSeiren

    www.worrall.pw

  • GMC Member
  • 610 posts
  • Version:GM:Studio

Posted 21 February 2012 - 03:33 PM

You can't.


I found, on my web server that if i password protect the directory that contains the .js file, the page will still read it but the user can't browse to it.

I'll double check but im sure it works.



I'll take that back, only worked with reading / writing files with PHP :). Because its server side... How stupid of me :P.

Edited by iSeiren, 21 February 2012 - 03:41 PM.

  • 0

#4 azcodon

azcodon

    GMC Member

  • GMC Member
  • 193 posts
  • Version:Unknown

Posted 28 February 2012 - 04:11 PM

You can't.


i mean when you type 'yourdomain.com/html5game/yourgame.js' it show codes which you can see name of other js(eg: login.js,run.js .....)
then you type 'yourdomain.com/html5game/login.js (or run.js .....) it show real code
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users