1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hiding A Script

Discussion in 'HTML & JavaScript' started by Given, Sep 7, 2010.

  1. Given

    Given Regular Member

    Joined:
    Feb 6, 2008
    Messages:
    286
    Likes Received:
    113
    Hi guys,

    Im no coder wiz (I actually have no knowledge in this department at all lol) so Im not sure if this is possible but I would like to know if it is.

    Lets say I have a force click javascript script (or something similar) that runs when someone loads my page. I'm guessing that after a view source, the person can see that the script is running on my webpage. Is there anyway to hide it so that someone cant see Im running a force click? Or is it just not possible? I mean obviously when someone gets redirected they'll know something is up, but is there anyway to hide that Im running such a script?
     
  2. andee

    andee Regular Member

    Joined:
    Jul 24, 2010
    Messages:
    218
    Likes Received:
    83
    you need a server side scripting language, ie PHP
     
  3. crazyflx

    crazyflx Elite Member

    Joined:
    Nov 9, 2009
    Messages:
    1,674
    Likes Received:
    4,825
    Location:
    http://CRAZYFLX.COM
    Home Page:
    http://www.iwebtool.com/html_encrypter

    Makes your source code look like this:

    Code:
    <Script Language='Javascript'>
    <!-- HTML Encryption provided by iWEBTOOL.com -->
    <!--
    document.write(unescape('%3C%68%74%6D%6C%3E%0A%0A%3C%68%65%61%64%3E%0A%3C%6D%65%74%61%20%68%74%74%70%2D%65%71%75%69%76%3D%22%43%6F%6E%74%65%6E%74%2D%54%79%70%65%22%20%63%6F%6E%74%65%6E%74%3D%22%74%65%78%74%2F%68%74%6D%6C%3B%20%63%68%61%72%73%65%74%3D%77%69%6E%64%6F%77%73%2D%31%32%35%32%22%3E'));
    //-->
    </Script>
     
  4. Given

    Given Regular Member

    Joined:
    Feb 6, 2008
    Messages:
    286
    Likes Received:
    113

    That seems like the easiest way to go, but will it work for javascript? It says its an html encrypter so Im not sure if javascript will work with it...

    Thanks for the help
     
  5. crazyflx

    crazyflx Elite Member

    Joined:
    Nov 9, 2009
    Messages:
    1,674
    Likes Received:
    4,825
    Location:
    http://CRAZYFLX.COM
    Home Page:
    Yes, it works with javascript. Just try it, you'll see.
     
  6. promosirupiah

    promosirupiah Junior Member

    Joined:
    Jul 11, 2010
    Messages:
    149
    Likes Received:
    33
    google about "obfuscator"
    It will convert your script so human can't read the language