Results 1 to 6 of 6

Thread: Hide js file

  1. #1
    Join Date
    Dec 2001
    Location
    Labuan
    Posts
    83
    Rep Power
    220

    Hide js file

    Is there any ways to hide the js file and css file or prevent it from being downloaded? I have googled it but with no result so far. Any pro here can help out?
    aLvinHan of ViNSiGN Web Design in Labuan and PJ

  2. #2
    Join Date
    Oct 2001
    Location
    kay el city
    Posts
    122
    Rep Power
    224
    I don't think that's possible. The browser must be able to download the js file to use it anyway so if you prevented users from downloading the js file you also prevent the JavaScript from working!
    _<BR><CENTER><IMG src="http://avatar.peachjon.com" alt="My Avatar"><A HREF="http://www.peachjon.com/wp"><IMG SRC="http://www.peachjon.com/mybanner.gif" BORDER="0" ALT="visit wAntAn productions, click here!"></A><BR><FONT FACE="arial, tahoma, helvetica" SIZE="1">- = l E E w Y E j O N = -</FONT></CENTER>

  3. #3
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    280
    yeah.. i dont think so..
    cannot hide js lar.
    also downloadable *.js just type in the address bar..

    BTW.. i just do like this sometime..

    every function inside it replace with my nick
    example :
    function mysticmind('code here ');

    or for popup etc .
    function mystic('window.open ntah camner lupe plak');

    while put at link = < a href="javascript:mystic();">ahaks.. </a >


    so for dummies.. they dont know about it.. hehhehe..
    dan nama telah digunakan secara glamer.. mueehhe

  4. #4
    Join Date
    Mar 2003
    Location
    Kamunting, Perak
    Posts
    640
    Rep Power
    217
    ...dah agak mcm xleh sorok ajer...
    tapi ide mysticmind mmg nampak bagus... di samping screwed up skit, ianya 'mengglamerkan'...hik..hik..

  5. #5
    Join Date
    May 2003
    Location
    Earth
    Posts
    29
    Rep Power
    0
    cool idea you got there mysticmind. huhuhu.

  6. #6
    Join Date
    Apr 2019
    Location
    Ahmedabad
    Posts
    32
    Rep Power
    0
    There is no way to protect javascript intended to run in a browser from a determined viewer. If the browser can run it, then any determined person can view/run it also.

    But, if you put your javascript in an external javascript file that is included with:

    Code:
    <script type="text/javascript" src="file.js"></script>
    Then, javascript code won't be immediately visible with the View Source command - only the script tag itself will be visible that way. That doesn't mean that someone can't just load that external javascript file to see it, but can keep it out of the browser's View Source command.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how to hide index.php source code ?
    By vivamaster in forum Website Programming
    Replies: 4
    Last Post: 11-12-2007, 11:21 PM
  2. Hide Back link while design a webpage
    By calvynlee in forum Website Design
    Replies: 1
    Last Post: 24-09-2007, 09:18 PM
  3. Need help on .tpl file
    By beyondsunn in forum Website Programming
    Replies: 5
    Last Post: 17-01-2006, 09:11 AM
  4. web log file?
    By dyda in forum Website Programming
    Replies: 3
    Last Post: 21-03-2004, 09:42 PM
  5. Replies: 7
    Last Post: 12-08-2002, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32