X-Autopilot

Do links hurt your reach on X? What the code says

Do links hurt your reach on X? The published ranker keeps one boolean and 23 characters per link. What actually drops reach is the destination's reputation.

X-Autopilot Team··9 min read
On this page · 11 sections

The short version

  • ▸The published ranker keeps exactly one fact about your link: `has_url`, a boolean, one of seven fields in `ContentFeatures`. There is no link count, no link penalty multiplier and no separate link score in `home-mixer/models/content_features.rs` (read 28 November 2026).
  • ▸A link costs you 23 characters of measured text length, set by the constant `URL_WEIGHTED_LEN = 23`, no matter how long the real URL is. That is the same 23 X has always used for counting a post.
  • ▸A photo post's own attachment link is not treated as a link at all. The code subtracts media attachment URLs before counting, and the test `media_attachment_url_is_not_an_external_link` asserts `external_urls == 0` for a media-only post.
  • ▸The reach damage is label-based, not link-based. `MALICIOUS_URL` drops the post for non-followers and sits in the out-of-network list used by the recommendation levels, while the plain home timeline level does not carry that rule at all.
  • ▸The rules that apply those labels read the entire redirect chain, not just the final page, and they exempt high-PageRank accounts, gray-verified organisations and a temporary skip list by name.

Quick answer

No rule in X's published code subtracts reach from a post because it contains a link. The ranker stores one boolean, has_url, and charges the link a flat 23 characters of text length. What does cut reach is a reputation verdict on where the link goes: a MALICIOUS_URL label drops the post for everyone who does not follow you, and the rules that apply such labels judge the whole redirect chain rather than the final page. The link in your pinned post is the riskiest one you own, because two separate rules re-test it and can label your account for a week.

Last updated: November 2026

X open-sourced its recommendation stack as xai-org/x-algorithm, and the file that turns a post into model inputs is home-mixer/models/content_features.rs. It is short enough to read in a minute, which is the useful thing about it.

ContentFeatures, the struct it fills, has seven fields:

FieldWhat it holds
has_videotrue or false
max_video_duration_msvideo length in milliseconds
has_phototrue or false
media_countnumber of attachments
weighted_text_lenmeasured length of the text
newline_counthow many line breaks you used
has_urltrue or false

That is the whole content description handed downstream. A link is one bit. There is no url_count, no domain field, no penalty coefficient, and no "link post" classification anywhere in the file. Whatever the model has learned about links, it learned from those seven numbers and from how people behaved, not from a hand-written rule.

This matters because the folk theory is specific. The claim you see repeated is that X detects a link and cuts distribution by some percentage. If that were implemented in the ranking path, this file is where it would be, and it is not there.

The 23-character rule

A constant opens the file: URL_WEIGHTED_LEN: u32 = 23.

Every external URL found in the text adds 23 to weighted_text_len, regardless of the real URL's length. One of the tests spells it out by asserting that see https://t.co/abc123 now measures 3 + 1 + 23 + 1 + 3.

Two consequences. A long tracking URL with UTM parameters costs you no more measured length than a short one, so cleaning up a URL for the sake of the algorithm buys nothing. And because the model does read weighted_text_len, a link does change one of the seven numbers: a 40-character thought plus a link measures like a 63-character post. Whether that helps or hurts depends on what the model learned about length, which the code does not tell you.

Here is the detail nobody writes down. When X attaches media, the post text carries a t.co URL for that attachment. The code refuses to count it:

Attachment URLs are subtracted from the total before anything is decided, with external_urls = urls.saturating_sub(attachment_urls), and has_url is then simply external_urls > 0. A test named media_attachment_url_is_not_an_external_link asserts that a post reading So nice ❤️ https://t.co/kKPUyA0ztX with one attachment has external_urls == 0. The same test asserts that a post with both an article link and a media link has external_urls == 1.

So a photo or video post is never a link post as far as these features go. Add an article link to it and you are back to one link, not two. The media does not hide your link, and the media's own URL never counted against you to begin with.

One more parser quirk, for completeness: is_url only matches a token starting with lowercase https:// or http://, and a test confirms that HTTPS://upper is not detected. Do not read that as a trick. X rewrites every link you post into a lowercase t.co URL before any of this runs, so there is nothing there to game.

Reach consequences live somewhere else entirely: visibility-filtering, the rules engine that decides which posts get dropped for which viewers. Two of its rules are about links.

MALICIOUS_URL_DROP_UNDESIRABLE declares audience: NonFollowers and a drop_post action whenever the post carries the MALICIOUS_URL safety label. UNTRUSTED_URL_UQF_DROP_UNSPECIFIED is narrower: it needs the UNTRUSTED_URL label and a viewer who has the quality filter switched on.

Now look at where those rules are installed. MALICIOUS_URL sits in a family called OON_POST_DROPS, which appears in TIMELINE_HOME_RECOMMENDATIONS and in IMMERSIVE_EXPANDED_RECOMMENDATIONS. It does not appear in TIMELINE_HOME. Read plainly: the label removes your post from the recommended, out-of-network surfaces and leaves the ordinary home timeline path alone.

That is exactly the shape of the complaint people report as a mystery. Followers see the post. You see the post. The For You distribution goes to nothing. There is no account-wide penalty state behind it, which is why we describe this as visibility limiting and link the rule rather than using the folk term. The same mechanic, label by label, is what X's AI moderation hands to classifiers, and it is the first thing to rule out when your X views are low.

The UNTRUSTED_URL rule is in a second family, LOW_QUALITY_AND_UQF_DROPS, and that family is installed in the notification levels. A label there does not just cost you timeline reach. It can stop your reply or mention from landing in the other person's notifications at all.

Those labels have to come from somewhere, and that somewhere is the botmaker-rules/scarecrow directory: plain-text rule files with ids, conditions and actions. Four of them are about URLs, and all four are marked isActive: true.

Rule 3226 listens to a url_event, pulls the redirectionChain, and if the chain's verdict matches BAD it applies SPAM to the post. If the verdict merely ends in BAD, it applies SPAM_HIGH_RECALL instead.

Its softer sibling, rule 6754, is broader. If any URL anywhere in the redirect chain carries a LOW_QUALITY verdict, and the final URL is not GOOD or WHITELIST, the post gets SPAM_HIGH_RECALL.

In both, the word doing the work is chain. There is a derived feature, GetUrlResolutionChains, whose entire job is to expand a URL into the list of hops it travels through. Your destination being clean is not sufficient. A link shortener, a redirect service or a tracking hop with a bad reputation is judged on its own, and it is enough.

If you route your links through a free shortener or a link-in-bio hop, that intermediary's reputation is now part of your posts. It is a cheap thing to check and a cheap thing to change. We cover the hosting side of that in the X link in bio guide.

Two rules make your pinned post special, and they are the most surprising thing in the directory.

Rule 20719 fires on a user_modification event when profileDesign.pinnedTweetIds changes. It expands the URLs in the newly pinned post, runs them through reputation, and if any verdict is BAD or LOW_QUALITY it writes an account-level label: SetUserLabel(spammerId, "SPAM_HIGH_RECALL", ...) with an expiry of CurrentTimeMs() + (OneWeekInSecs * 1000).

Then rule 20732 runs the same check on a different trigger: event: follow. Its note reads "User pinned a LOW_QUALITY or BAD url/domain to his/her profile. Restricting notifications."

Put those together. A link you pinned and forgot is re-evaluated when you re-pin anything, and again every time you follow somebody. The penalty is account level, lasts a week, and renews on the next trigger. If you are building a profile around one offer, the link in that pinned post is the single highest-stakes URL on your account, and it deserves a look before your next posting push.

Who the rules exempt by name

Every one of these rules carries the same guard clause:

!IsTestUser(:authorId) &&
!IsHighPageRankUser(:authorId) &&
!Contains(GetLongList(`AutoExpiringTempSkipList`), :authorId) &&
!IsUserGrayVerified(:authorId)

High-PageRank accounts are exempt. So are gray-verified organisations, and anyone on a temporary skip list. This is the mechanical answer to a question that comes up constantly: why do large accounts post links all day without consequence while a 400-follower account posts one and watches its reach die? Because at least four active URL rules check a reputation threshold before they do anything, and large accounts are on the other side of it. The rules are in X's open-source algorithm and so is the exemption.

What X's own policy says

The code is the mechanism. The rule you agreed to is the Authenticity policy, which is where the old platform-manipulation URL now redirects.

Its Content Spam section bans "repeatedly posting or sending direct messages consisting of links shared without commentary, so that this comprises the bulk of your post/direct message activity". That is the honest version of "links hurt your reach": a link in a post you actually wrote about is not the problem, and a feed of bare links with no commentary is named behaviour.

That same list bans "editing links (URLs) so that the final destination page has significantly changed, either in content or location". Swapping where a well-performing post points is the specific trick being called out, and it is worth knowing before you do it by accident with a redirect you control.

Six things, in rough order of payoff.

  1. Write the post, then add the link. The link is one boolean either way, so the thing that actually decides performance is whether the post was worth reading.
  2. Audit the pinned link first. It is the only URL with two separate account-level rules pointed at it.
  3. Drop unnecessary redirect hops. The chain is judged, so each hop is another reputation you are borrowing.
  4. Stop cleaning URLs for length. All of them measure 23.
  5. Do not repoint a live post's link at something different. That one is in the policy by name.
  6. Check from the outside when reach drops. These rules exclude non-followers, not you, so a logged-out window tells you more than your own analytics will.

One part no tool fixes is consistency: showing up in replies and posting on a schedule week after week. That is the job X-Autopilot does on your own Mac, in your own browser session, which is a lower detection surface than a shared cloud IP pool rather than a promise about outcomes. Browser automation on X is a gray area and we will not tell you otherwise.

The short version

Links are not taxed in X's published ranker. They are measured, at 23 characters and one boolean, and then the model does whatever the model does. The actual reach risk is a reputation verdict attached to where the link goes, applied by rules that read every hop in the chain, enforced hardest against small accounts, and aimed first at the one link you probably pinned and forgot.

Frequently asked

Answers indexed by Google + AI assistants.

Do links reduce your reach on X?+

Not on their own, judging by X's published code. In `home-mixer/models/content_features.rs` the only link fact handed to the model is `has_url`, a true or false value sitting beside `has_video`, `has_photo`, `media_count`, `weighted_text_len`, `newline_count` and `max_video_duration_ms`. A model can of course learn that posts with links get fewer clicks on average, and that is a real effect. What does not exist in the code is a rule that subtracts reach because a link is present.

Does X still count a link as 23 characters?+

Yes. The ranker computes its own text length and adds `URL_WEIGHTED_LEN`, a constant set to 23, for each external URL it finds. A test in the same file asserts that `see https://t.co/abc123 now` measures 3 + 1 + 23 + 1 + 3. So a link always eats 23 of your character budget and always contributes 23 to the length feature the model reads, whether the URL is 18 characters long or 180.

Should I put the link in a reply instead of in the post?+

There is no rule in the published code that moves reach from a post because its link sits in a reply, so the popular version of this advice is not supported by the source. What is real is more boring: a reply is a separate post with its own labels and its own audience, and far fewer people open a thread than see its first post. If the link matters to you, the trade is reach on the link against reach on the post, not a hidden penalty.

What does the MALICIOUS_URL label actually do to my post?+

It drops the post for people who do not follow you. The rule `MALICIOUS_URL_DROP_UNDESIRABLE` declares `audience: NonFollowers` and a `drop_post` action, and it is listed in the out-of-network drop family that the recommendation levels use. Your followers can still see the post, you can still see the post, and the out-of-network surfaces stop serving it. That is why the symptom reads as a sudden reach collapse with nothing visibly wrong.

Can the link in my pinned post get my account labelled?+

Two active rules say yes. Bot 20719 fires when your pinned post changes, expands the URLs in it, and if any resolves to a `BAD` or `LOW_QUALITY` reputation verdict it sets an account-level `SPAM_HIGH_RECALL` label for one week. Bot 20732 runs the same check on a `follow` event, so following somebody re-triggers the test on a link you pinned months ago. Both exempt high-PageRank and gray-verified accounts.

Sources
Related searches
do links hurt reach on xdoes posting links reduce reach on xdo links get downranked on xx link reach penaltyshould i put the link in a reply on xx malicious url labeldo links in posts get fewer viewstwitter link penalty algorithmvisibility limitingx algorithm open sourceuntrusted url labelt.co link shortenerout of network reachx content spam policypinned post link
DY
Deepak YadavBuilding X-Autopilot

Product designer and indie hacker. Runs the agent on his own X account every day and writes up what the data shows, including when it's inconvenient.

Follow on X →
Try X-Autopilot.
$199 once. No subscription, no monthly bill. Real Chrome on your Mac.
See pricing▶
Free PDF · the X Growth Playbook

The exact playbook we use to grow on X

The bio that converts, the daily reply loop, the posting cadence, and the tool stack, in one no-fluff PDF. Drop your email and it's yours.

No spam. Unsubscribe anytime.

Free tools

Try it yourself.

All free X tools →
Keep reading

Related posts.