embed - How to hide embedly javascript key? - Stack Overflow

I'm working with Embedly and found out that the key I use, and pay for, in the Embedly javascript

I'm working with Embedly and found out that the key I use, and pay for, in the Embedly javascript is plainly visible as anyone can just "Inspect Element" and see the key.

How can I hide that part of the javascript, the key part, from people just using "Inspect Element"?

<script type="text/javascript">
  $('document').ready(function(){
    $('div.featuredGame').embedly({
      maxWidth: 200,
      maxHeight: 140,
      key: 'KEY REMOVED'
    });
  });   
</script>

I'm working with Embedly and found out that the key I use, and pay for, in the Embedly javascript is plainly visible as anyone can just "Inspect Element" and see the key.

How can I hide that part of the javascript, the key part, from people just using "Inspect Element"?

<script type="text/javascript">
  $('document').ready(function(){
    $('div.featuredGame').embedly({
      maxWidth: 200,
      maxHeight: 140,
      key: 'KEY REMOVED'
    });
  });   
</script>
Share Improve this question asked Jul 22, 2011 at 14:51 tnwtnw 13.9k15 gold badges71 silver badges114 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 5

you could try and obfuscate it? Here's a js obfuscator you could use.

Its not 100% secure, but it at least hides your key, unless someone REALLY wanted to decode it.

Embedly now added a securing keys section in response to this problem. https://blog.embed.ly/securing-keys-f8aca8e6d180

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745591063a4634833.html

相关推荐

  • embed - How to hide embedly javascript key? - Stack Overflow

    I'm working with Embedly and found out that the key I use, and pay for, in the Embedly javascript

    12小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信