Denied File Setup

  • This guide will show you how to set up a denied file for use with either Express or Fastify.

Prerequisites

  • Nothing

Setup

  • Create a file in any directory of your choice and name it whatever you want. For this example, we will name it denied.html.
  • Add the following script to the denied.html file:
<script src="https://cdn.jsdelivr.net/npm/@rubynetwork/corlink-client@latest/index.min.js" defer></script>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Access Denied</title>
    <script src="https://cdn.jsdelivr.net/npm/@rubynetwork/corlink-client@latest/index.min.js" defer></script>
</head>
<body>
    <h1>Access Denied</h1>
    <p>You do not have permission to access this resource.</p>
</body>
</html>
Table of Contents