SEO Lesson: Learn the rel=”nofollow” concept and use cases and when to use it and when not to use it

hello! Today we’re going to learn about the rel=" nofollow” attribute, which plays an important role in HTML. In this lesson, I’ll walk you through the concept of rel="nofollow“, its use cases, and when to use it and when not to use it.

1️⃣ The concept of rel="nofollow"

rel="nofollow” is an attribute used in the <a> tag in HTML that tells search engines not to follow the link. This means that links with this attribute are not crawled by search engines and do not affect the search ranking (PageRank) of the linked page.

example code:

<a href="https://example.com" rel="nofollow">Example Site</a>

the code above applies the rel="nofollow ” attribute to the text “Example Site”, telling search engines not to follow that link.

use cases for 2️⃣ rel="nofollow"

rel="nofollow” is primarily used in the following situations

1.user-generated content: Links embedded inuser-generated content such as blog comments, forum posts, etc. cannot be guaranteed to be authoritative. In such cases, rel="nofollow"is applied to prevent SEO impact due to spammy links.

example code :

<a href="https://spam-site.com" rel="nofollow">Check this out!</a>

2.ads and paid links: Links generated through ads or sponsorships can use rel="nofollow” to clarify their commercial intent so that they don’t impact search engine optimization.

example code:

<a href="https://spam-site.com" rel="nofollow">Check this out!</a>

this link is added by a sponsorship, and we apply rel="nofollow” to make sure search engines recognize it as an advertising link.

3.links to untrusted sites: Links to external sites that are not relevant to your content or are untrusted can have a negative impact on your SEO. in these cases, apply rel="nofollow"to prevent search engines from following the link.

example code:

<a href="https://untrusted-site.com" rel="nofollow">Untrusted Site</a>

this link leads to an untrusted site, so we apply rel="nofollow"to minimize the impact on SEO.

3️⃣ When to use rel="nofollow"

  • user-generated content: Links in comments or posts written by users are likely to be spam, so apply rel="nofollow” to prevent search engines from following them.
  • ads and sponsored links: Use rel="nofollow"for links added due to paid ads or sponsorships so that search engines don’t mistake them for natural recommendations.
  • links from untrusted sources: Links to unreliable or low-quality sites can have a negative impact on SEO, so apply rel="nofollow” in these cases.

4️⃣ When not to use rel="nofollow"

  • links to authoritativesources: Links to authoritative sources, such as authoritative organizations and official websites, can have a positive impact on SEO, so you should not use rel="nofollow” in these cases.
  • internal links: Internal links to other pages within your own website help your site structure and SEO, so you don’t need to apply rel="nofollow“.
  • natural editorial links: External links that are added naturally in the flow of your content, and do not need to use rel="nofollow” as long as the link is authoritative and relevant.

5️⃣ Additional link attributes

in 2019, Google introduced the rel="sponsored” and rel="ugc ” attributes to further clarify the nature of a link:

  • rel="sponsored": use for links that are paid for, such as ads or sponsorships.
  • example code :
<a href="https://sponsored-site.com" rel="sponsored">Sponsored Link</a>
  • rel="ugc": use for links generated from User Generated Content.
  • example code :
<a href="https://user-link.com" rel="ugc">User's Link</a>

by utilizing these attributes to clearly indicate the nature of the link, you can help search engines understand exactly what it is.

so, we’ve covered the concept of rel=" nofollow,” its use cases, and when to use it and when not to use it. To help you understand, let’s use an analogy: rel="nofollow” is the HTML term for when we give someone directions and advise them, “Don’t go down that road, it’s dangerous.”

how to Protect Your WordPress AdSense Revenue: Allow Visitors with Ad Blocker Detection

many people use WordPress to run a blog or website and monetize it through various ad platforms such as Google AdSense, Dable, and Tenning. However, if some of your visitors are using an **Ad Block extension**, your ads may not be displayed properly, which can directly affect your revenue.

광고 차단 프로그램 방지 사이트를 
광고 차단 프로그램 활성화 하고 방문한 경우
visitors visit your site with ad blockers enabled

as the percentage of ad block users grows, the decrease in revenuedue to ad blocking can mean a decrease in revenue for those of you who make money from AdSense ads. There are two ways to detect or work around AdSense ad block users to address the decrease in AdSense revenue

  1. utilize the AdSense Ad Recovery Program
    you can use AdSense’s ad block recovery feature to prompt ad blockers to allow ads and encourage them to view your ads again.
  2. utilize ad blocking plugins and scripts
    wordPress plugins or your own JavaScript code can also be effective ways to detect ad blockers, display alternative messages, or restrict access to your content.

a word of caution, while ad revenue may increase, your SEO may be impacted by the bounce rate of users requesting to disable ad blockers.
depending on the situation, it is recommended to choose and operate according to whether you mainly use search or external traffic.

in this article, we’ll walk you through two methods you can use to prevent ad blockers from reducing your revenue, step by step.

1. setting up an AdSense Ad Recovery Program

blocking ad blockers with the AdSense Ad Recovery Program

  1. from the AdSense home page, go to Privacy & Messages > Manage ad block recovery

    go to the AdSense homepage and click Privacy & Messages in the AdSense menu.
    Scroll down to the bottom and click Manage under the Ad Block Recovery menu.
    애드센스 홈페이지에 접속 후 애드센스 메뉴에서 개인정보 보호 및 메시지를 클릭합니다.
아래로 스크롤을 내리면 광고 차단 회복 메뉴에서 관리를 클릭 합니다.

  2. create an AdSense Ad Block Allow message.

    in the ad block recovery prompt, click Messages, and then click Create message.광고차단 회복 프래램에서 메시지를 클릭 후 메시지 만들기를 클릭합니다.

  3. proceed with the ad blocking acceptable message settings.

    select the ad blocked site in the ad blocking acceptable message settings.
    Include and exclude pages, you can set the URLs within the site to include and exclude the ad blocking acceptable message.
    The default language is Korean, and you can select one of three placement settings.
    choose from centered, centered with no close option , or fixed at the bottom of each of the 3 positions.

    광고 차단 허용 메시지 설정에서 광고 차단된 사이트를 선택 합니다.
페이지 포함 및 제외 에서 사이트 내의 광고 차단허용 메시지를 포함하는 url 과 제외하는 url 을 설정할 수 있습니다.
기본 언어는 한국어, 게재위치 설정은 3가지중 1개로 선택할 수 있습니다. 
 중앙에 표시되는 모델, 중앙에 표시 되면서 닫기 옶션없음, 각 하단에 고정 3기지중 선택 합니다.

  4. styling the ad blocking acceptance message


    in the Ad Blocking Allowed Message, in Styling, you can convert the text of the ad message, change the color of the ad message, etc.

    To convert the text first, click Styling, then hover your mouse next to the ad message, you can edit the ad blocking message title and body.
    You can choose the color of the ad message, as well as the buttons, font size and color, after clicking Header, Title, Body on the right, you can choose the color and size.
    After selecting all, click Publish on the top right.

  5. insert the ad blocking allow script code into the header.

    once the ad blocking acceptable message has been generated, you need to insert the code on your own site.
    The generated ad blocking acceptable message script code can be found in Privacy and Messages – > Tagging -> Copy.
    Once copied, enter the code between <header> and </header> on your own site.광고 차단 허용 메시지가 생성 되었다면, 운영하는 사이트의 코드를 삽입해야합니다.
생성된 광고차단 허용 메시지 스크립트 코드는 개인정보 보호 및 메시지 - > 태그하기 -> 복사 클릭 후 스크립트를 복상합니다.
복사한 스크립트는 본인 사이트의 <header> 와 </header> 사이에 코드를 입력합니다.

2.using an ad block detection plugin

using a plugin that provides ad block detection in WordPress is a simple setup. with an ad block plugin, you can display alternative content for ad-blocked users or hide your content. there are three plugins used in WordPress to detect ad blocking, listed below.

adblock Detection Plugin 1 – Admiral Adblock Analytics

  • features
    • detects ad blocking software and displays a notification window asking the user to unblockthe ad blocker.
    • provides data to analyze the percentage of ad block usage and its impact on your site.
    • simple setup and quick to apply on your WordPress site.
  • how it works
    • display an ad block disable message.
    • Analyze ad block usage rates to manage lost ad revenue.
    • download the plugin

ad Blocking Plugin 2 – CHP Ads Block Detector

  • features
    • providesmore advanced functionality, including the ability to detect and bypass ad blocks.
    • provide alternative content or restrict access after detecting ad block users.
    • optimize user experience with customized messages and designs.
  • how it works
    • Target Ad Block users with a message asking them to unblock ads.
    • prevent ad block users from viewing content with content blocking features.More
    • provides Ad Block detection and bypass with advanced features.
    • download the plugin

how to install the Ad Block Detection plugin

  1. install the plugin from
    • in your WordPress admin page, go to [Plugins] -> [Add New].
    • search for the plugin name above and click the [Install] -> [Activate ] button.
  2. setting up the plugin
    • on the plugin settings page, set the following options
      • show notification message: “You are using an ad blocker. please disable your ad blocker for a smooth experience on our site.”
      • content blocking: Hide or block some content when an ad blocker is detected.
      • custom message: Customize the notification pane with a design and wording that fits your site.
  3. test
    • Visit your site in a browser with Ad Block enabled to make sure the plugin is working properly.

adding ad blocker detection code directly: Installing the plugin ❌

withoutthe WordPress Ad Block Detection plugin, you can also add JavaScriptcode directly to headr to detect ad blocks and display notifications to users.

below is the code for the ad block detection script.

<script> document.addEventListener('DOMContentLoaded', function () { var adBlockEnabled = false; var testAd = document.createElement('div'); testAd.className = 'adsbox'; testAd.style.display = 'none'; document.body.appendChild(testAd); window.setTimeout(function () { if (testAd.offsetHeight === 0) { adBlockEnabled = true; } testAd.remove(); if (adBlockEnabled) { alert('Ad blocker detected, please disable ad or set exception'); } }, 100); }); </script>

how to add the ad block detection script code

  1. go to your WordPress admin page.
  2. select [Appearance] -> [Theme File Editor].
  3. open the header.php file of your activated theme, and add the above code just below the <head> tag.
  4. save and test.

settingadditional content access restriction code

additionally, you can block or restrict site content when an ad blocker is detected, making your site unavailable to visitors unless they disable their ad blocker.

enable the plugin’s built-in content blocking functionality, or add JavaScript code like this

if (adBlockEnabled) { document.body.innerHTML = '<h1>Ad blocker detected:</h1><p>Please disable your ad blocker to use the site:</p>'; }

SEO Tutorial: SEO Master Class for WordPress and AdSense

📢 SEO Lecture in Korea

Search Engine Optimization (SEO) is essential for success online today, especially if you’re running WordPress and AdSense. Learn practical techniques and strategies to increase your traffic from search engines with this customized SEO course. Learn practical techniques and strategies to increase your traffic from search engines!

📌 Course Overview

  1. Lecture Topics:
    • Optimize your WordPress site for SEO
    • SEO strategies for maximizing AdSense revenue
  2. Target:
    • Bloggers and WordPress site operators
    • People who want to increase their AdSense ad revenue
    • Beginners to intermediates who are new to SEO
  3. Lecture Locations:
    • Near Hakdong Station, Gangnam-gu, Seoul (5 minutes walk from Exit 3 of Hakdong Station on Subway Line 7)
    • Convenient online Zoom lectures available
  4. Course Schedule:
    • Time: Every Monday/Wednesday/Friday, 8-9pm
    • Duration: 12 sessions over 4 weeks
  5. Cost of the course:
    • 30,000 won per hour (12 sessions total: 360,000 won)
    • Includes course textbooks and practice materials

📚 Course Curriculum

  1. SEO Basics (1-3):
    • How search engines work
    • How to do keyword research
    • Basic SEO Settings with WordPress Plugins
  2. WordPress SEO Optimization (4~6th time):
    • Yoast SEO, Rank Math plugin in-depth utilization
    • SEO-Friendly Writing and Posting Strategies
    • Optimizing internal and external links
  3. AdSense and SEO (7~9th time):
    • Analyzing and Utilizing High-Paying Keywords
    • Content strategy to increase click-through rate (CTR)
    • How to Optimize Your Google AdSense Ads
  4. SEO Deepening Strategies (10~12th time):
    • Build Backlinks and Utilize Tools
    • Measure your SEO performance (Google Analytics, Google Search Console)
    • Latest SEO trends and algorithm changes

🎓 About the Instructor

KimSEO Instructor:

  • 10 years of experience as a consultant specializing in SEO
  • Experienced in running WordPress and AdSense blogs
  • Expert in teaching Google Analytics (GA) and Search Console utilization

💡 Course Features

  1. Hands-on:
    • Live, hands-on WordPress and AdSense setup during the class.
    • Hands-on lab with direct application to student sites.
  2. Small Personalized Lessons:
    • Small classes limited to a maximum of 10 people per class.
    • Individualized feedback and Q&A sessions available.
  3. Various Support Materials:
    • SEO checklists and guides to utilizing keyword research tools.
    • A post-class recording (if attending online).

📞 Contact Us and Register

  1. 전화: 010-2462-3443
  2. Email: contentflow@contentflow.co.kr

📌 Register Now!

SEO is a must if you want to run WordPress and AdSense successfully. This course will take you from the basics to the practical, so you can make your content stand out in the search engines 🚀