Seite 1 von 1

[3.2] NOFOLLOW Problem

Verfasst: 22.04.2018 12:31
von DerNordBerliner
Hallöchen,
beim Einbinden von externen Links in Beiträgen erhalte ich im Quelltext keinen Eintrag mit nofollow.
Schalte ich hingegen zu den Chrome DevTools um, wird mir der Link mit Javascript Einbindung und nofollow angezeigt.

1. Warum erhalte ich zwei verschiedene Quellangaben?
2. Wie und WO kann ich das nofollow rausnehmen?

Gruß Markus

Re: [3.2] NOFOLLOW Problem

Verfasst: 24.04.2018 16:34
von DerNordBerliner
Keiner eine Idee?

Re: [3.2] NOFOLLOW Problem

Verfasst: 24.04.2018 16:49
von tas2580
Eigentlich setzt phpBB keine nofollow Links, das muss also irgend eine Extension sein.

Wenn sich Quelltext und die Ausgabe der DEV Tools unterscheiden liegt das meistens daran, dass das DOM per JS geändert wurde. Schalte mal JS ab und schau dann nochmal in den DEV Tools.

Gruß Tobi

Re: [3.2] NOFOLLOW Problem

Verfasst: 24.04.2018 16:54
von Melmac
Hi,

nur eine Vermutung ( :oops: ): hast Du im Browser ein "do not track" aktiviert?
In Chrome: Einstellungen > Erweitert > Sicherheit und Datenschutz > Option "Mit Browserzugriffen eine "Do Not Track"-Anforderung senden".
In FF: Einstellungen > Datenschutz & Sicherheit > Option "Schutz vor Aktivitätenverfolgung"

Re: [3.2] NOFOLLOW Problem

Verfasst: 01.05.2018 14:31
von DerNordBerliner
tas2580 hat geschrieben:Eigentlich setzt phpBB keine nofollow Links, das muss also irgend eine Extension sein.
Wenn sich Quelltext und die Ausgabe der DEV Tools unterscheiden liegt das meistens daran, dass das DOM per JS geändert wurde. Schalte mal JS ab und schau dann nochmal in den DEV Tools.
Gruß Tobi
Also es liegt am eingestellten JS im Browser. Nach Deaktivierung sind die JS Einträge nicht mehr da.
ABER: Ich habe alle Extensionen deaktiviert, jeden Cache gelöscht und sie sind immer noch da.

Was nun ?

Re: [3.2] NOFOLLOW Problem

Verfasst: 01.05.2018 17:09
von DerNordBerliner
GEFUNDEN!

Im Style K_Pirate ist in der overall_footer.html folgendes enthalten:

Code: Alles auswählen

<!-- EVENT overall_footer_body_after -->
<script type="text/javascript">
// <![CDATA[

function loadjQuery(url, success) {
    var script = document.createElement('script');
    script.src = url;
    var head = document.getElementsByTagName('head')[0],
    done = false;
    head.appendChild(script);
    
    script.onload = script.onreadystatechange = function() 
    {
        if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete'))
        {
        done = true;
        success();
        script.onload = script.onreadystatechange = null;
        head.removeChild(script);        
        }
    };
}
if (typeof jQuery == 'undefined') {
    loadjQuery('http://code.jquery.com/jquery.min.js', function() 
    {
            $(document).ready(function() {
                $("a[href^=http]").each(function(){
                    if(this.href.indexOf(location.hostname) == -1) {
                    $(this).attr({ onclick : "window.open(this.href);return false;", rel : "nofollow" });
                    }
                })
            });
    });
} else { 
            $(document).ready(function() {
               $("a[href^=http]").each(function(){
                  if(this.href.indexOf(location.hostname) == -1) {
                     $(this).attr({ onclick : "window.open(this.href);return false;", rel : "nofollow" });
                  }
               })
            });
}

function scrollToTop() {
    $('html, body').animate({scrollTop:0}, 'slow');
}

function getIEversion() {
        var rv = -1;
        if (navigator.appName == 'Microsoft Internet Explorer') {
            var ua = navigator.userAgent;
            var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
            if (re.exec(ua) != null)
                rv = parseFloat( RegExp.$1 );
        }
        return rv;
    }
$(window).scroll(function(){
if ($(this).scrollTop() > 80) {
$('.scrollicon').fadeIn();
} else {
$('.scrollicon').fadeOut();
}
});

 $('.scrollicon').click(function(){
$("html, body").animate({ scrollTop: 0 }, 1200);
return false;
});
// ]]>
</script>
So richtig einzuordnen weiß ich ihn allerdings nicht. Das "no" nun rausgenommen und nun wird alles verfolgt.

Danke euch