GLLMOLFAR · КРАУЛЕР

GLLmolfar
у ваших логах.

GLLmolfar — це десктопний застосунок. Його краулер працює на комп'ютері людини, яка його запустила, і надсилає запити з її власного підключення до інтернету: IP-адреса у ваших логах — її. GetLoopLoop не надсилає цих запитів, не бачить їх і не керує ними.

User-Agent
Mozilla/5.0 (compatible; GLLmolfar-Desktop/<version>; user-initiated; +https://www.getlooploop.com/molfar)
Попередні версії
Mozilla/5.0 (compatible; GLLmolfar/<version>; +https://www.getlooploop.com/gllmolfar)
Токен для robots.txt
gllmolfar
Хто запускає
Людина на своєму комп'ютері, для сканування, яке вона почала

Він поважає налаштування вашого сайту

Для нас це найважливіше, і це увімкнено за замовчуванням.

  • Читає robots.txt, перш ніж запитати сторінку, і не запитує адрес, які robots.txt для нього закриває.
  • Якщо robots.txt закриває стартову адресу, сайт не сканується взагалі.
  • Дотримується Crawl-delay (до 10 секунд між запитами).
  • Типово надсилає 5 запитів за секунду і ніколи не більше 20, хоч би що стояло в налаштуваннях.
  • Сповільнюється, коли сервер відповідає 429 чи 503, і робить паузу, коли з'єднання обриваються.
  • На CAPTCHA чи перевірці на бота зупиняється й відкриває сторінку, щоб людина пройшла її сама. Не розв'язує й не обходить її.

Заблокувати за п'ять секунд

Додайте це у свій robots.txt. GLLmolfar читає його перед кожним скануванням.

User-agent: gllmolfar
Disallow: /

Або лишіть доступ і сповільніть його:

User-agent: gllmolfar
Crawl-delay: 5

Перевірте свій robots.txt

Вставте robots.txt і адресу. Відповідь дає той самий код, що працює в GLLmolfar, просто у вашому браузері: нічого нікуди не надсилається.

Заблоковано: GLLmolfar не запитуватиме цю адресу. Правило: Disallow: /search

Правила, яких він дотримується: Disallow: /search · Crawl-delay: 2 s

Коли він схожий на іншого бота

Людина в GLLmolfar може вибрати User-Agent Googlebot, Bingbot, ШІ-краулера чи браузера, щоб побачити сайт так, як його бачить цей агент. Тоді застосунок слухається групи цього агента в robots.txt, тож правило, написане для Googlebot, діє і на нього.

Справжній Googlebot чи Bingbot підтверджується зворотним DNS-запитом до адреси. Запит з ім'ям Googlebot з домашнього чи офісного підключення — не Google.

Якщо це не GLLmolfar

GLLmolfar у тому вигляді, як ми його випускаємо, нічого з цього не робить. Запит, який робить, — це підроблене ім'я або змінена копія:

  • Він запитує адреси, які ваш robots.txt закриває для gllmolfar.
  • Він надсилає понад 20 запитів за секунду з однієї адреси.
  • Він називає себе GLLmolfar і приходить із сервера GetLoopLoop.

Заблокуйте IP-адресу відправника. Таке використання GLLmolfar порушує його умови, і ми хотіли б про це знати.

Власні сервери GetLoopLoop

Безкоштовні інструменти getlooploop.com, які читають сторінки з наших серверів, як-от Vectorscope, називають себе GetLoopLoop/1.0 SEO Crawler (токен для robots.txt — getlooploop). Наші сервери ніколи не надсилають User-Agent, що починається з GLLmolfar.

Код, який вирішує

Так GLLmolfar читає robots.txt: скопійовано з коду застосунку з кожним релізом, і саме цей код виконує перевірка вище.

З GLLmolfar 0.9.128 · packages/crawl-core/src/gll/robotsRules.ts

// Origin: GetLoopLoop backend/src/services/crawler/robotsRules.ts @ 74f8e67 (copied; the GetLoopLoop repo is read-only for this project).
// Modified: User-Agent and robots token are GLLmolfar's own (../ua.ts).
/**
 * Reading robots.txt, and reading it the way the standard says.
 *
 * This lived inside `fetchRobotsTxt`, mixed in with the fetch, and had three
 * defects that all point the same way — a crawl that quietly reads nothing.
 *
 * **Precedence was "any Allow wins".** The rule is longest-match: the most
 * specific line for a path decides, and `Disallow: /` with `Allow: /blog` means
 * only `/blog` is open. The old check let a single `Allow:` anywhere in the file
 * unlock the entire site, and — worse in the other direction — a bare
 * `Disallow: /` with no `Allow` blocked every URL including the seed, so the
 * frontier came up empty and the crawl finished with zero pages and no
 * explanation anywhere.
 *
 * **Groups leaked.** A block introduced by two user-agent lines —
 * `User-agent: *` followed by `User-agent: Googlebot` — set the applicability
 * flag from the last line read, so the rules belonging to `*` were skipped.
 * Consecutive agent lines share one block; that is what the format means.
 *
 * **Nothing reported the block.** A site refusing us is a fact about the site
 * worth stating, not a reason to return an empty result and let a screen say "no
 * crawls yet".
 *
 * Pure: parsing only, so every rule above is checkable without a network.
 */

/** Our crawler's own token, as sent in the User-Agent header. */
export { CRAWLER_UA_TOKEN } from "../ua.js";
import { CRAWLER_UA_TOKEN } from "../ua.js";

export interface RobotsRules {
  raw: string;
  allowedPaths: string[];
  disallowedPaths: string[];
  sitemaps: string[];
  /** Crawl-delay the site asked for, in ms. 0 when it did not ask. */
  crawlDelayMs: number;
  isUrlAllowed: (url: string) => boolean;
}

export const PERMISSIVE_RULES: RobotsRules = {
  raw: "",
  allowedPaths: [],
  disallowedPaths: [],
  sitemaps: [],
  crawlDelayMs: 0,
  isUrlAllowed: () => true,
};

/**
 * Whether a rule path matches a URL path, with `*` and `$` as robots.txt uses
 * them. Anything unparseable falls back to a plain prefix test rather than
 * throwing — a malformed rule must not decide the whole crawl.
 */
function ruleMatches(rule: string, path: string): boolean {
  if (!rule) return false;
  if (!rule.includes("*") && !rule.endsWith("$")) return path.startsWith(rule);
  const anchored = rule.endsWith("$");
  const body = anchored ? rule.slice(0, -1) : rule;
  const pattern = body
    .split("*")
    .map((part) => part.replace(/[.+?^${}()|[\]\\]/g, "\\$&"))
    .join(".*");
  try {
    return new RegExp(`^${pattern}${anchored ? "$" : ""}`).test(path);
  } catch {
    return path.startsWith(body.split("*")[0]);
  }
}

/** Length of the matching rule, for longest-match precedence. `*` counts as itself. */
function matchLength(rule: string, path: string): number {
  return ruleMatches(rule, path) ? rule.length : -1;
}

/**
 * The line that closes a URL, for saying why (2026-12-06: the crawl's "this site is closed to us", and the bot page
 * on getlooploop.com, which runs this same file). Null when the URL is allowed. The longest matching Disallow wins,
 * unless an Allow at least as long matches too — the same decision as isUrlAllowed.
 */
export function blockingRule(rules: Pick<RobotsRules, "allowedPaths" | "disallowedPaths">, targetUrl: string): { disallow: string; allow: string | null } | null {
  let path: string;
  try { const u = new URL(targetUrl); path = u.pathname + u.search; } catch { return null; }
  let dis = "", disLen = -1, allow: string | null = null, allowLen = -1;
  for (const rule of rules.disallowedPaths) { const n = matchLength(rule, path); if (n > disLen) { disLen = n; dis = rule; } }
  if (disLen === -1) return null;
  for (const rule of rules.allowedPaths) { const n = matchLength(rule, path); if (n > allowLen) { allowLen = n; allow = rule; } }
  if (allowLen >= disLen) return null;
  return { disallow: dis, allow: allowLen >= 0 ? allow : null };
}

export function parseRobotsTxt(text: string, token: string = CRAWLER_UA_TOKEN): RobotsRules {
  const disallowedPaths: string[] = [];
  const allowedPaths: string[] = [];
  const sitemaps: string[] = [];
  let crawlDelayMs = 0;

  /*
   * Groups, then the one that is ours (0.7.34, RFC 9309 2.2.1). Consecutive `User-agent:` lines
   * introduce one shared group. A crawler obeys the groups that name its own product token,
   * compared whole and case-insensitively, and only when none does, the `*` groups. Two
   * mistakes were fixed here: the token was matched as a substring, so the Googlebot preset also
   * obeyed `User-agent: Googlebot-Image` (and was locked out of a site that only kept images
   * away from Google); and `*` was merged into a named group, which no real crawler does.
   */
  type Group = { agents: string[]; rules: Array<[string, string]> };
  const groups: Group[] = [];
  let current: Group | null = null;
  let inAgentRun = false;

  for (const rawLine of text.split("\n")) {
    const line = rawLine.split("#")[0].trim();
    if (!line) continue;
    const separator = line.indexOf(":");
    if (separator === -1) continue;
    const field = line.slice(0, separator).trim().toLowerCase();
    const value = line.slice(separator + 1).trim();

    if (field === "user-agent") {
      // A new run of agent lines starts a new group.
      if (!inAgentRun || !current) { current = { agents: [], rules: [] }; groups.push(current); }
      current.agents.push(value.toLowerCase());
      inAgentRun = true;
      continue;
    }

    // Sitemap is a top-level directive: it belongs to the file, not to a group.
    if (field === "sitemap") {
      if (value) sitemaps.push(value);
      continue;
    }

    inAgentRun = false;
    if (current) current.rules.push([field, value]);
  }

  const me = token.toLowerCase();
  // "Googlebot/2.1" in a User-agent line still names Googlebot: the version is not part of the token.
  const named = groups.filter((g) => g.agents.some((a) => a.split("/")[0].trim() === me));
  const chosen = named.length ? named : groups.filter((g) => g.agents.includes("*"));
  for (const g of chosen) {
    for (const [field, value] of g.rules) {
      if (field === "disallow") {
        // An empty Disallow means "nothing is disallowed" — it is not a rule.
        if (value) disallowedPaths.push(value);
      } else if (field === "allow") {
        if (value) allowedPaths.push(value);
      } else if (field === "crawl-delay") {
        const seconds = Number(value);
        if (Number.isFinite(seconds) && seconds > 0) {
          crawlDelayMs = Math.max(crawlDelayMs, Math.min(seconds * 1000, 10_000));
        }
      }
    }
  }

  return {
    raw: text,
    allowedPaths,
    disallowedPaths,
    sitemaps,
    crawlDelayMs,
    /**
     * Longest match wins, and a tie goes to Allow.
     *
     * That is the rule as written and as every major crawler implements it, and
     * it is the difference between reading a site that publishes
     * `Disallow: /` + `Allow: /blog` and reading nothing at all.
     */
    isUrlAllowed: (targetUrl: string) => {
      let path: string;
      try {
        // Path and query: rules such as `Disallow: /*?sort=` are written against both (RFC 9309, 2.2.2).
        const u = new URL(targetUrl);
        path = u.pathname + u.search;
      } catch {
        // Not a URL we can judge; refusing here would silently drop seeds.
        return true;
      }
      let longestAllow = -1;
      let longestDisallow = -1;
      for (const rule of allowedPaths) longestAllow = Math.max(longestAllow, matchLength(rule, path));
      for (const rule of disallowedPaths)
        longestDisallow = Math.max(longestDisallow, matchLength(rule, path));
      if (longestDisallow === -1) return true;
      return longestAllow >= longestDisallow;
    },
  };
}

Питання чи скарга

Напишіть на getlooploop@gmail.com і вкажіть час, адресу й User-Agent з ваших логів. Умови використання GLLmolfar