Restricting Viewing JavaScript Files

Discussion in 'HTML & Website Design' started by webgaya, Oct 21, 2006.

  1. #1
    By following the URL, anyone can see what is included
    in a JavaScript. Is there anyway to restrict this. I mean
    using password protected directories in .htaccess.
    If I do so, will that file also be "unavailable" to the HTML
    file which uses it?

    Is there a free way to encrypt JavaScript files?

    webgaya.
     
    webgaya, Oct 21, 2006 IP
  2. Morishani

    Morishani Peon

    Messages:
    239
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm gonna say this once :

    There is no way you can hide HTML/JS/Any client side scripting at all.
    Everything which is client side is going to the client , therefore -it's not restricted.


    But, u can try to do some tricks like "hot linking" with htaccess and encrypt it, anyway - it would by "hackable"
     
    Morishani, Oct 22, 2006 IP
  3. webgaya

    webgaya Active Member

    Messages:
    132
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    What is "hot linking"?

    webgaya.
     
    webgaya, Oct 22, 2006 IP