Skip to content

Commit e37f6b3

Browse files
committed
fixing the pdf certificate to asking crawlers to stop looking
1 parent 3a42219 commit e37f6b3

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/pdf/[token].js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import Head from "next/head";
23
import ModernCertificate from "../../components/certificates/modern";
34
import DefaultCertificate from "../../components/certificates/default";
45
import PDFLayout from "../../components/PDFLayout";
@@ -10,6 +11,9 @@ import Link from "../../components/ui/Link";
1011
const Pdf = () => {
1112
return (
1213
<>
14+
<Head>
15+
<meta name="robots" content="noindex, nofollow" />
16+
</Head>
1317
<div className="container">
1418
<Alert variant="danger" className="shadow-one mt-4 d-flex">
1519
Ooops... Certificate not found or something went wrong ,{" "}

public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow: /pdf/

0 commit comments

Comments
 (0)