SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2008
    Posts
    167
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Encryption of <iframe>...</iframe> code

    Hi,

    I am using Wordpress to post all my articles. There are some articles that have live streams as shown in http://www.sportsbun.com/formula1/ma...stream-online/

    In this link you would see
    Code:
    <iframe allowTransparency="true" id="player"  scrolling="no" width="650" allowtransparency="no" frameborder="0"  src="http://coolsportz.de/iframesmall1.php" height="480">  </iframe>
    How do I encrypt this <iframe>....</frame> so that no other webmaster simply copies the entire snipped to his posts and thereby steals the bandwidth?

    Regards,
    Nuk

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,607
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    The way to resolve that is to use hotlink protection on the server to prevent that page from being called from any sites other than the ones you want to allow - it can't be done any other way and certainly not using JavaScript.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2008
    Posts
    167
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    The way to resolve that is to use hotlink protection on the server to prevent that page from being called from any sites other than the ones you want to allow - it can't be done any other way and certainly not using JavaScript.
    Hi,

    I see some kind of encryption done in http://www.cricdown.com/live-score/live-score-main.php when you click on View Source. This is exactly what I would want.

    Thanks,
    Hemanth

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,527
    Mentioned
    84 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by nuklear View Post
    Hi,

    I see some kind of encryption done in http://www.cricdown.com/live-score/live-score-main.php when you click on View Source. This is exactly what I would want.

    Thanks,
    Hemanth
    Open the built-in developer tools, select the HTML element, Copy as HTML, and ditch the script. The HTML code is http://pastebin.com/NH4DwLpV

    It's a publicly available web page, so any attempts to protected it are just futile.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

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