Results 1 to 9 of 9

Thread: Hiding VBScript from the user ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212

    Question Hiding VBScript from the user ?

    Is it possible to hide the script from the user, so even when he chose the "View source" option, he only sees HTML and NO script. i.e. something like an include but no apparent; he would just see a reference to it ...?

    Thanks !
    Regards,

    El-Nino

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Code:
    <script language="VBScript" src="file.vbs" type="text/vbscript"></script>
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212
    Whoa fast =)

    Thanks a lot dude !
    I was tired of those 700 lines of code displyaing all around
    But I can't seem to get it working : Do I have to use something special in the .vbs ?
    Or just the
    <!--
    ...Sub...
    ....
    ...
    --> ???
    Last edited by eL_NiNo; Jul 3rd, 2001 at 10:55 AM.
    Regards,

    El-Nino

  4. #4
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118
    First move all vbscript code into a file like file.vbs and then include
    in the .asp file the following pice of code

    <script language="VBScript" src="file.vbs" type="text/vbscript"></script>


    I hope this works...


    Sonia




  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212
    That's what I did; but how is a vbs structured ?
    I just cut&paste my code in but no go :\


    Thanks for the help !
    Regards,

    El-Nino

  6. #6
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118

    Lightbulb

    well it should work...as i can see.....make sure there is only functions and sub in the vbs file, no need to declare a <SCRIPT> in the file..

    Sonia

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212

    Oops

    Oh, forget it, my mistake !
    [No, no, I didn't had ASP in this script - /eyeroll/]
    Lol

    Thanks for the help
    Regards,

    El-Nino

  8. #8
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    That's what I did; but how is a vbs structured ?
    Basically, it's just as a normal vb file - take out all the html / asp tags

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  9. #9
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Um... why bother though?

    This is the same as trying to prevent someone from stealing pics by disabling the right click context menus.

    If I want to see the code, you can't stop me. I know where it lives. (on my machine that is hehe)
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width