{"id":21834,"date":"2014-08-07T18:01:36","date_gmt":"2014-08-07T10:01:36","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=21834"},"modified":"2025-04-04T02:00:42","modified_gmt":"2025-04-03T18:00:42","slug":"jquery-detect-ads-block","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/","title":{"rendered":"Detecting Ads Blocker with jQuery"},"content":{"rendered":"<p>For many websites that publish content for free, advertisements (or ads) are one of their primary sources for getting revenue.<\/p>\n<p>The revenue from ads will be <strong>spent for paying the expenses to run the website<\/strong> such as the web server, <strong>Content Delivery Network<\/strong> (CDN), <strong>internet connection<\/strong> and, most importantly, the <strong>writers<\/strong> that produce the content.<\/p>\n<p>However, ads could be really irritating for readers. Ads appear and pop up at every corner, which leads to many Internet users installing ad blocker extensions in their browser to <a href=\"https:\/\/www.hongkiat.com\/blog\/remove-adware-in-windows-for-good\/\">put the ads out of sight<\/a>.<\/p>\n<p>For the publisher this is very sad news. <strong>No ads displayed means less page views<\/strong>, which will result in less revenue.<\/p>\n<p>I believe there has to be a mutual relationship between the publisher, the readers, and the advertisers. Publishers should publish <strong>useful content that the readers enjoy<\/strong>, while <strong>advertisers will support the publisher financially<\/strong> to publish more useful content in return for relevant and potential customers.<\/p>\n<p>Many websites <strong>show a message or an alternative way to kindly ask for their support<\/strong> when the user is using an ad blocker software. In this post, we will show you how to apply it in your website. Let\u2019s take a look.<\/p>\n<h3>Getting Started<\/h3>\n<p>First let\u2019s see <strong>how one of the ad block software works <\/strong>to remove the ads. As example herein, we have added a few ad images wrapped inside a <code>div<\/code> with <code>class=\"ads\"<\/code>; this class is used to style as well as define the area as an ad.<\/p>\n<pre>\r\n&lt;div class=\"ads\"&gt;\r\n\t&lt;img src=\"images\/ads.jpg\" height=\"250\" width=\"300\" alt=\"\"&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>Technically, the image should appear in the browser, but it does not \u2013 as you can see below. The ads blocker software blocked the image. To verify it, you can see the error log within the browser Console.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/add-blocked.jpg\" alt=\"ad\" width=\"500\" height=\"320\"><figcaption>The ad image is not shown because the ad blocker extension blocks the image.<\/figcaption><\/figure>\n<p>In addition, the ad blocker also hides the ad image by the addition of <code>display:none<\/code>, as follows.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/display-none.jpg\" alt=\"display none\" width=\"500\" height=\"320\"><figcaption>display:none is set in the image.<\/figcaption><\/figure>\n<p>Once we know how we present the ads in the website and how the ad blocker blocks the ads, we are now able to <strong>determine how we should write the script to display the alternative message<\/strong> that will be displayed when the ad blocker is active.<\/p>\n<h3>Writing the Script<\/h3>\n<p>There are several ways we can do this, one of which is by <strong>verifying if the <code>img<\/code> still contains the <code>display:none<\/code>.<\/strong> Otherwise, we will display the alternative message. And, with jQuery, it\u2019s very easy to do so. First, let\u2019s create a new JavaScript function.<\/p>\n<pre>\r\nfunction appendMessage() {\r\n\tvar div = $('&lt;div&gt;').attr('id', 'message').text('Ad block is active');\r\n\tvar add = $('body').append(div);\r\n}\r\n<\/pre>\n<p>The function above will create a <code>div<\/code> element with the content of <strong>\u201cAd block is active\u201d<\/strong> and append it to the document <code>body<\/code>.<\/p>\n<p>Then, we will create a JavaScript conditional statement that says: if the image is set with <em>display:none<\/em> than we will run the <code>appendMessage()<\/code> function.<\/p>\n<pre>\r\nsetTimeout(function(){\r\n\tif($('img').css('display') == \"none\") {\r\n\t\tappendMessage();\r\n\t}\r\n}, 500);\r\n<\/pre>\n<p>The addition of <code>setTimeout<\/code> is the <em>timeframe<\/em> that we set to allow the ad block extensions to run its function \u2013 hide the ads \u2013 before we run ours.<\/p>\n<p>This will allow us to accurately verify if the <code>display:none<\/code> has been added (or exist) on the image.<\/p>\n<p>Below is the whole code:<\/p>\n<pre>\r\n$(document).ready(function() {\r\n\tfunction appendMessage(argument) {\r\n\t\tvar div = $('&lt;div&gt;').attr('id', 'message').text('Ad block is installed and active. Please support us by disabling it.');\r\n\t\tvar add = $('body').append(div);\r\n\t}\r\n\tsetTimeout(function(){\r\n\t\tif($(\"img\").css('display') == \"none\") {\r\n\t\t\tappendMessage();\r\n\t\t}\r\n\t}, 500);\r\n});\r\n<\/pre>\n<p>Follow these links below to see how this function works.<\/p>\n<ul class=\"download download-2c\">\n<li><a href=\"https:\/\/hongkiat.github.io\/jquery-detect-ads-block\/\">View Demo<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/hongkiat\/jquery-detect-ads-block\/\">Download Source<\/a><\/li>\n<\/ul>\n<p>If you have Ad Block you should see the following message (otherwise, what you should see is the ads image).<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/alternative-message.jpg\" alt=\"alternative message\" width=\"500\" height=\"150\"><\/figure>\n<h2>Important Notes<\/h2>\n<p>This code assumes that the ad is an image. It is worth noting that each ad is unique. Check out how your ad is displayed the ads, and find which element is hidden.<\/p>","protected":false},"excerpt":{"rendered":"<p>For many websites that publish content for free, advertisements (or ads) are one of their primary sources for getting revenue. The revenue from ads will be spent for paying the expenses to run the website such as the web server, Content Delivery Network (CDN), internet connection and, most importantly, the writers that produce the content.&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[352],"tags":[4446,911],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Detect Ads Blocker On Your Website<\/title>\n<meta name=\"description\" content=\"For many websites that publish content for free, advertisements (or ads) are one of their primary sources for getting revenue. The revenue from ads will\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Detecting Ads Blocker with jQuery\" \/>\n<meta property=\"og:description\" content=\"For many websites that publish content for free, advertisements (or ads) are one of their primary sources for getting revenue. The revenue from ads will\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-07T10:01:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T18:00:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/add-blocked.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"Detecting Ads Blocker with jQuery\",\"datePublished\":\"2014-08-07T10:01:36+00:00\",\"dateModified\":\"2025-04-03T18:00:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/\"},\"wordCount\":580,\"commentCount\":17,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/jquery-detect-ads-block\\\/add-blocked.jpg\",\"keywords\":[\"Ad Blockers\",\"jQuery\"],\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/\",\"name\":\"How to Detect Ads Blocker On Your Website\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/jquery-detect-ads-block\\\/add-blocked.jpg\",\"datePublished\":\"2014-08-07T10:01:36+00:00\",\"dateModified\":\"2025-04-03T18:00:42+00:00\",\"description\":\"For many websites that publish content for free, advertisements (or ads) are one of their primary sources for getting revenue. The revenue from ads will\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/jquery-detect-ads-block\\\/add-blocked.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/jquery-detect-ads-block\\\/add-blocked.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/jquery-detect-ads-block\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Detecting Ads Blocker with jQuery\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Detect Ads Blocker On Your Website","description":"For many websites that publish content for free, advertisements (or ads) are one of their primary sources for getting revenue. The revenue from ads will","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/","og_locale":"en_US","og_type":"article","og_title":"Detecting Ads Blocker with jQuery","og_description":"For many websites that publish content for free, advertisements (or ads) are one of their primary sources for getting revenue. The revenue from ads will","og_url":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-08-07T10:01:36+00:00","article_modified_time":"2025-04-03T18:00:42+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/add-blocked.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"Detecting Ads Blocker with jQuery","datePublished":"2014-08-07T10:01:36+00:00","dateModified":"2025-04-03T18:00:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/"},"wordCount":580,"commentCount":17,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/add-blocked.jpg","keywords":["Ad Blockers","jQuery"],"articleSection":["Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/","url":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/","name":"How to Detect Ads Blocker On Your Website","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/add-blocked.jpg","datePublished":"2014-08-07T10:01:36+00:00","dateModified":"2025-04-03T18:00:42+00:00","description":"For many websites that publish content for free, advertisements (or ads) are one of their primary sources for getting revenue. The revenue from ads will","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/add-blocked.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/jquery-detect-ads-block\/add-blocked.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/jquery-detect-ads-block\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Detecting Ads Blocker with jQuery"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-5Ga","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=21834"}],"version-history":[{"count":5,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21834\/revisions"}],"predecessor-version":[{"id":73710,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21834\/revisions\/73710"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=21834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=21834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=21834"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=21834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}