מוודאת שנשלחה באופן מאובטח בקשות לסקריפטים של ספריית תגי המודעות. לא רק
מספק אבטחה טובה יותר למשתמשים, וגם משפר את הביצועים. מאז המודעה
בקשות שהונפקו על ידי GPT תמיד משתמשות ב-HTTPS, וטוענים את הספרייה עצמה
המארח המומלץ דרך HTTPS מוודא שה
צריך לפתוח רק חיבור אחד בכל הבקשות שקשורות להצגת מודעות.
המלצות
צריך לטעון תמיד את הסקריפטים של תגי המודעות מכתובת URL מסוג HTTPS.
שגוי
<script>
var el = document.createElement('script');
// Incorrect: potentially loading the ad tag over HTTP.
var useSSL = 'https:' == document.location.protocol;
el.src = (useSSL ? 'https:' : 'http:') + '//securepubads.g.doubleclick.net/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(el, node);
</script>
[null,null,["עדכון אחרון: 2024-08-22 (שעון UTC)."],[[["Loading ad tag library scripts securely over HTTPS enhances security and performance for users."],["Browsers establish a single connection for ad serving when GPT and its library are fetched via HTTPS."],["Ad tag scripts should always be loaded from an HTTPS URL for optimal security."],["Google Publisher Tag and AdSense are among the supported ad tag library scripts, and their HTTPS URLs are provided for reference."]]],[]]