Putting HTML from outside sources into my blog

I’ve read that putting HTML/JAVASCRIPT codes from 3rd parties sites that
are not integrated with (eg Paypal, Flickr,Amazon…) into my blog
enables them to truck and hack my blog .

Sometimes I have to put html/javascript codes from 3rd parties sites because these codes are useful.

Please guys tell me if there’s a way out there that let me know if the code from 3rd parties sites are risky or not?

Thank you in advance

My regards

If you actually pull the code from the third party site then they can change what it does at any time.

If you have your own copy of their code then only you can change it.

Of course you need permission to use code from other sites whichever way you do it.

I thinks it’s similar to downloading apps. If you don’t trust them - DON’T

For example, I would trust Google Fonts and jQuery and have little concern <link-ing to them
Not that they couldn’t introduce a risk vector, but most likely not.


Reminds me of “in Google Analytics we Trust” because of their slogan “Don’t be Evil” which they have recently dropped in favour of Do the Right thing

Thank you for your feedback
Please note that I am on blogger.com (not hosted platform) and I usually put HTML/JAVASCRIPT from 3rd party sites and I don’t have enough skills in programming so that I can be sure whether these codes are safe or not. For example, I copy and put html/javascript code of (related posts gadget or social media buttons …else) or other codes of any gadget from 3rd party sites, take a look at the following code of a social media buttons and tell me what you think, although I tried to change the script but the code wont work eventually, so how to use this code and prevent 3rd party from trucking me with their script?

Here is the code of the gadget:

<div class="a2a_kit a2a_kit_size_50 a2a_floating_style a2a_vertical_style" style="left:80px; top:150px;">
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_google_plus"></a>
<a class="a2a_button_pinterest"></a>
<a class="a2a_dd" href="https://www.addtoany.com/share"></a>

<script type="text/javascript" src="//static.addtoany.com/menu/page.js"></script>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.