Support » Plugin: SEO Backlink Monitor » New features (I could even pay for it)

  • somewebmaster

    (@somewebmaster)


    Hello
    You did a great job. There are a few features that would make this tool perfect.
    1. When checking links do it imitating a mobile phone device. It’s because of Google’s Mobile First, and some sites don’t have the same content for mobile and desktop (especially links in the sidebar are “in danger”)
    2. You should check if the page is indexed at all. It is enough to find it in results after searching “site:…”, or just check if the page contains “noindex”
    Regards

Viewing 1 replies (of 1 total)
  • somewebmaster

    (@somewebmaster)

    I’m not in PHP but I found out this works

    class SEO_Backlink_Monitor_Helper {

    public static function link_validator( $linkTo, $linkFrom ) {
    // CHECK IF PAGE IS IN GOOGLE INDEX
    if (strstr(file_get_contents(“http://www.google.com/search?q=site:$linkFrom”), ‘did not match any documents’)) {
    // Page is not in the index
    return [ ‘text’ => ‘P_A_G_E___N_O_T___I_N_D_E_X_E_D’];
    }

    $response = wp_remote_get( $linkFrom, [
    ‘sslverify’ => false,
    ‘user-agent’ => ‘Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/W.X.Y.Z‡ Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)’
    ] );
    $urlHost = wp_parse_url( $linkTo );

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.