ETEvoraTools
SEO & Website Tools

Internal Link Extractor

Internal Link Extractor requires a hostname string, then keeps quoted anchor hrefs that either begin with / or contain that hostname anywhere after lowercasing. This is substring filtering, not URL-origin comparison: a hostile or unrelated URL containing the hostname in its path, query, userinfo, or a longer domain can be misclassified. Protocol-relative, fragment-only, and other relative forms may also be omitted.

Runs locally — files stay on your device
Quick answer

Does this reliably prove links are same-origin?

No. Host matching is a simple substring test.

Internal identity requires parsed origins

Reliable classification compares normalized scheme/host/port against a base URL and resolves relative references before comparison.

How it works

Quoted anchor hrefs are captured, then values starting / or containing the lowercase host string are deduplicated.

Key concepts

Substring false positives

https://evil.test/?next=example.com can pass for host example.com.

Root-relative shortcut

Anything starting / is accepted without knowing the actual page origin.

When to use it

  • Get a rough list from controlled simple HTML.
  • Collect root-relative hrefs quickly.
  • Triage obvious same-host strings.

When not to use it

  • Do not use it for security decisions.
  • Do not trust results with adversarial or mixed-host HTML.
  • Do not expect all relative-reference forms.

Worked examples

Root path

Input
href="/about"
Expected output
Included

Slash rule matches.

Same host

Input
https://example.com/a
Expected output
Included for example.com

Substring appears.

False positive

Input
https://notexample.com/
Expected output
May be included

Hostname text is contained.

Common mistakes

Using as origin validation

Substring is insufficient. Correction: Parse URL and compare hostname/origin exactly.

Including scheme in host field

Matching behavior becomes inconsistent. Correction: Enter the intended hostname, then still review.

Missing fragments

#section does not start slash. Correction: Use a base-aware parser.

Best practices

  • Treat output as candidates.
  • Resolve against a known base URL.
  • Compare parsed origins and crawl the result.

Related operations and differences

Canonical Tag Generator

Choose Canonical Tag Generator when you need to generate a canonical link element from a URL.; use Internal Link Extractor specifically for internal links.

External Link Extractor

Choose External Link Extractor when you need to extract links pointing away from a hostname.; use Internal Link Extractor specifically for internal links.

HTML Link Extractor

Choose HTML Link Extractor when you need to extract href values from pasted HTML.; use Internal Link Extractor specifically for internal links.

Image Alt Attribute Checker

Choose Image Alt Attribute Checker when you need to find image tags missing non-empty alt text.; use Internal Link Extractor specifically for internal links.

Meta Tag Generator

Choose Meta Tag Generator when you need to generate title and description HTML tags.; use Internal Link Extractor specifically for internal links.

Robots.txt Generator

Choose Robots.txt Generator when you need to generate a basic robots.txt file.; use Internal Link Extractor specifically for internal links.

Limitations and privacy

  • Regex extraction and substring host filter.
  • No URL parsing/resolution, exact origin, ports, public-suffix rules, fragment relatives, status, rel, crawlability, or security guarantee.

The pasted text or URL is processed locally in this browser and is not fetched or submitted by the tool.

Frequently asked questions

Can false positives occur?

Yes.

Are /paths included?

Yes.

Are #fragments included?

Not by the explicit rules.

Does it crawl pages?

No.

References