[ASK] Adakah cara membuat semua link pada blog kita menjadi nofollow?

Discussion in 'General Discussion' started by Amar Alif, Mar 22, 2018.

  1. Amar Alif

    Amar Alif Member

    Joined:
    May 17, 2017
    Messages:
    455
    Likes Received:
    19
    Trophy Points:
    18
    Adakah cara membuat semua link pada blog kita menjadi nofollow?
     
  2. Damar

    Damar Well-Known Member

    Joined:
    Jun 22, 2014
    Messages:
    1,465
    Likes Received:
    210
    Trophy Points:
    63
    Google+:
    Buat blogspot ya? biasanya sih pakai JavaScript :D

    Code:
    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js' type='text/javascript'></script>
    <script type="text/javascript">
    jQuery(document).ready(function () {
    jQuery('a[href*="http://"]:not([href*="https://blogkamu.blogspot.com"])').attr('rel', 'nofollow');
    jQuery('a[href*="https://"]:not([href*="https://blogkamu.blogspot.com"])').attr("target", "_blank");
        });
    </script>
    sumber:
    Code:
    https://www.alltechbuzz.net/nofollow-external-links-automatically-blogger/
    *btw saya belum pernah coba :D
     
Loading...

Share This Page