1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

html encrypt

Discussion in 'Programming' started by dramiditis, Aug 13, 2009.

  1. #1
    hi,
    how can I encrypt part of html, so human can recognze it when open "view source", but browser can read it.

    I want to encrypt path of my .flv files.

    thanks
     
    dramiditis, Aug 13, 2009 IP
  2. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You mean so a human can't recognize it. There's no true 'encrypt' of html source, also if someone is using Firefox or Safari they can inspect the generated html content.

    But if you want to try to hide it from most avid people, you can use a free option provided by the makers of Ioncube encoder, except it requires Javascript to work.

    http://www.ioncube.com/html_encoder.php

    Basically what it does is encodes your html into obfusication, then when the page loads javascript writes the content of html to the screen. In most cases a simple "view source" will only see the javascript loader and the encoded html data.

    Your alternative is to use javascript to load the flash and obfusicating the javascript code with a packer such as Yahoo JS compressor.

    Edit: another thing I thought of, if you make your url go thru a php script, you can use a code for a specific video, with the php script you can perhaps use session and other variables to prevent the loading of the video anywhere outside of a webpage hosted on the site.
     
    kblessinggr, Aug 13, 2009 IP
  3. wassim

    wassim Well-Known Member

    Messages:
    322
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    110
    #3
    The real protection goes through FMS or flash remoting but if you want a cheaper solution, just to hid the path from casual peeper, I have one for you yet it involves altering your flv player (pm me).
     
    wassim, Aug 14, 2009 IP
  4. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Even flash is easily cracked, take youtube for example, flash player typically hides the actual flv with the method you mentioned. But Safari can actually see the stream url being downloaded via the activity window, works the same even on a porn site using a flv player in the method you mentioned.
     
    kblessinggr, Aug 14, 2009 IP
  5. Codex-m

    Codex-m Peon

    Messages:
    36
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The best way is to use server side techniques. If you need to hide .flv files, you can use a combination of PHP and MySQL to be be presented to the browser and plays the file, while the real .flv file location cannot be seen by users.

    Again, there is no perfect encryption or hiding of files.
     
    Codex-m, Aug 14, 2009 IP
  6. Gray Fox

    Gray Fox Well-Known Member

    Messages:
    196
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #6
    Agree with Codex-m, IMO the best way is to parse FLV requests with PHP, you can use $_SESSION variable, check referrer and/or useragent... more complex solutions would include usage of MySQL, so each FLV's URL would change every time it's requested.
     
    Gray Fox, Aug 14, 2009 IP