Results 1 to 11 of 11

Thread: How to Protect your file/s - Help Needed

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    How to Protect your file/s - Help Needed

    pls how can you protect(if possible) your external javascript and swf file/s from online thieves.

    and one more thing: how can you keep a page from the browser history(using javascript)?

    i once read sometimes ago that javascript's location.replace will do it but it seems it only works with older browsers.

    thank you.
    Last edited by modpluz; Jan 17th, 2008 at 06:04 AM.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: How to Protect your file/s - Help Needed

    anybody pls?
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: How to Protect your file/s - Help Needed

    The javascript file can be compressed ( do a search for javascript compress ), it doesn't stop anyone from stealing it though, just makes it a little more difficult to read. If you are so concerned about people finding out bits of your logic, then you should be placing this logic in a business logic layer.

    SWF files have an equivalent... it's uh... uhm...

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: How to Protect your file/s - Help Needed

    Actually I don't know if this would be considered an AD but my company makes obfuscation software for both JavaScript and SWF files

    http://www.kindisoft.com/
    I hope this doesn't get me in trouble
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to Protect your file/s - Help Needed

    Well it does answer the question asked. Now if it was free it would be even better but the OP didnt state he was looking for a free solution only.

    I have read where swf files can be cracked quite easily.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: How to Protect your file/s - Help Needed

    if there are free tools its fine by me(but we all know most free apps have one or more limitations and you have to upgrade to a "pro" version to get the full functionalities).

    but am also opened to "paid apps" opinion(if there are any-apart from the ones mention in ComputerJy's post).
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  7. #7
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: How to Protect your file/s - Help Needed

    Quote Originally Posted by RobDog888
    Well it does answer the question asked. Now if it was free it would be even better but the OP didnt state he was looking for a free solution only.

    I have read where swf files can be cracked quite easily.
    That's why we make obfuscation software

    Quote Originally Posted by modpluz
    but am also opened to "paid apps" opinion(if there are any-apart from the ones mention in ComputerJy's post).
    Actually there are only 2 or 3 obfuscation software for flash, all of them are commercial (no open source projects so far) but none support flash 9 yet.
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  8. #8
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: How to Protect your file/s - Help Needed

    Quote Originally Posted by modpluz
    pls how can you protect(if possible) your external javascript and swf file/s from online thieves.
    No. How would you expect to protect files that are downloaded and run on the client? It's simply not possible. Even if you obfusticate or compress the code, it's still easy to run them through a debugger or decompiler and figure out what they're doing. The same goes for trying to protect images.

    Your best defense is Patents (for algorithms, etc), Copyrights (for text, images/graphics) and Watermarks (images). If you have something worth stealing, someone is going to steal it. If you have a Patent, Copyright or Watermark it makes it difficult for the theif to figure out how to use the item without being thrown in jail when you find out.

    If you have any kind of business logic, website settings, database information, etc setup in those JS or SWF files then you have a really big security vulnerability that needs to be resolved by changing your design, rather than trying to prevent people from accessing files that they have to access anyway.

    Quote Originally Posted by modpluz
    and one more thing: how can you keep a page from the browser history(using javascript)?
    No sane or modern web browser does this anymore and for good reason. You should NEVER modify the default behavior of the web browser. Not only is it considered malicious but it's just rude.

    If you actually require this, then you need to re-think the architecture of your website.
    Quote Originally Posted by RobDog888
    I have read where swf files can be cracked quite easily.
    It's just a matter of opening one in a Flash Decompiler. Works amazingly well.
    Quote Originally Posted by ComputerJy
    That's why we make obfuscation software
    No offence but obfuscation by definition does not prevent nor hinder the decompiling of Flash objects. While it may make the source difficult to read, all of the images and logic is still there. Sure, it may take a little longer to figure it out but there isn't anyway to prevent decompiling a Flash movie without breaking the movie itself.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  9. #9
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: How to Protect your file/s - Help Needed

    Quote Originally Posted by kasracer
    No offence but obfuscation by definition does not prevent nor hinder the decompiling of Flash objects. While it may make the source difficult to read, all of the images and logic is still there. Sure, it may take a little longer to figure it out but there isn't anyway to prevent decompiling a Flash movie without breaking the movie itself.
    Actually every knows flash compiler crashed when trying to decompile the output of out application.

    That's why I'm proud
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  10. #10
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: How to Protect your file/s - Help Needed

    Quote Originally Posted by ComputerJy
    Actually every knows flash compiler crashed when trying to decompile the output of out application.

    That's why I'm proud
    Obfuscation, by definition, doesn't do anything that should cause that. You're doing something odd

    I've tried one a long time ago with a decompiler and it worked fine. I would imagine the decompiler that would crash doesn't fully support everything within Flash so don't worry, it'll get there if it still does it
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  11. #11
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: How to Protect your file/s - Help Needed

    Quote Originally Posted by kasracer
    Obfuscation, by definition, doesn't do anything that should cause that. You're doing something odd

    I've tried one a long time ago with a decompiler and it worked fine. I would imagine the decompiler that would crash doesn't fully support everything within Flash so don't worry, it'll get there if it still does it
    That's why I still have a job after version 1
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

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