This project is a simple webserver that shows the user a gif, but redirects them to a webpage when they middle-click on the gif, or click "open browser". See this video for a demo.
The webserver checks the user agent. If it matches the discord bot user agents, it shows the gif. Else, it redirects to a chosen webpage.
- NodeJS
- NPM
- Clone the repository
$ git clone [email protected]:justekoro/fakediscordgif.git
- Install dependencies
$ cd fakediscordgif
$ npm install # If you use yarn, just type yarn.
- Start the server
$ node index.js
Use environment variables. To disable logger, just set environment variable NODE_ENV to "prod". There is also the PORT
environment variable, which is the port the server will listen on. The default is 3000.
This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.
An instance is running on https://gifdis.krbk.dev/gif.gif, which redirects to windows defender.