Skip to content

Commit

Permalink
Mark outgoing links as nofollow 🖍️
Browse files Browse the repository at this point in the history
  • Loading branch information
wotschofsky committed Dec 19, 2023
1 parent 4699c0c commit beb6b7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lookup/[domain]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const LookupLayout: FC<LookupLayoutProps> = ({
className="block text-4xl font-bold"
href={`https://${domain}`}
target="_blank"
rel="noreferrer"
rel="noreferrer nofollow"
>
{domain} <ExternalLinkIcon className="inline-block" />
</a>
Expand Down
6 changes: 5 additions & 1 deletion components/DomainLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ const DomainLink: FC<DomainLinkProps> = ({ domain }) => (
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<a href={`https://${domain}`} target="_blank" rel="noreferrer">
<a
href={`https://${domain}`}
target="_blank"
rel="noreferrer nofollow"
>
<ExternalLinkIcon className="mx-1 inline-block h-3 w-3 -translate-y-0.5" />
</a>
</TooltipTrigger>
Expand Down

1 comment on commit beb6b7a

@vercel
Copy link

@vercel vercel bot commented on beb6b7a Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.