Skip to content

Commit

Permalink
extend rel=nofollow rules (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis authored Feb 28, 2024
1 parent ba8b106 commit a3eb184
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const DnsRecordsWidget: React.FC<DnsRecordsWidgetProps> = ({
<a
className="flex cursor-pointer select-none flex-row gap-2 decoration-slate-700 decoration-dotted underline-offset-4 hover:underline dark:decoration-slate-300"
href={`/lookup/${cutLastDot(record.data.split(' ')[1])}`}
rel="nofollow"
>
<Dot className="my-auto h-7 w-7 shrink-0" />
<span>{cutLastDot(record.data.split(' ')[1])}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const NameserverWidget: React.FC<Props> = ({
<a
className="flex cursor-pointer select-none flex-row gap-2 decoration-slate-700 decoration-dotted underline-offset-4 hover:underline dark:decoration-slate-300"
href={`/lookup/${cutLastDot(ns)}`}
rel="nofollow"
>
<Dot className="my-auto h-7 w-7 shrink-0" />
<span>{cutLastDot(ns)}</span>
Expand Down
2 changes: 1 addition & 1 deletion app/lookup/[domain]/dns/_components/DnsHistoryButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const DnsHistoryButton: FC<Props> = (props) => {
<Link
href={`https://dnshistory.org/dns-records/${domain}`}
target="_blank"
rel="noopener"
rel="noopener nofollow"
className="my-auto"
>
<Button variant="outline" className="rounded-lg text-sm font-medium">
Expand Down
3 changes: 2 additions & 1 deletion components/DomainLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const DomainLink: FC<DomainLinkProps> = ({ domain }): ReactElement => (
<Link
className="select-none underline decoration-dotted underline-offset-4 hover:decoration-dashed"
href={`/lookup/${domain}`}
rel="nofollow"
>
<span>{domain}</span>
</Link>
Expand All @@ -37,7 +38,7 @@ const DomainLink: FC<DomainLinkProps> = ({ domain }): ReactElement => (
<Link
href={`https://${domain}`}
target="_blank"
rel="noreferrer noopener"
rel="noreferrer noopener nofollow"
>
<ExternalLinkIcon className="mx-1 inline-block h-3 w-3 -translate-y-0.5" />
</Link>
Expand Down

1 comment on commit a3eb184

@vercel
Copy link

@vercel vercel bot commented on a3eb184 Feb 28, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

digga – ./

digger.vercel.app
digga-maathis.vercel.app
digga-git-main-maathis.vercel.app
digga.dev

Please sign in to comment.