Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
/ img-spoof-nodejs Public archive

This is a very simple and fast to get an image with spoofing referer [NodeJS].

License

Notifications You must be signed in to change notification settings

aalfiann/img-spoof-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img-spoof-nodejs

Version Build Status Coverage Status Known Vulnerabilities JavaScript Style Guide GitHub

This is a very simple and fast to get an image with spoofing referer [NodeJS].

Features

  • Spoofing Image Referer
    You are able to get a protected remote image by spoofing it.
  • Very Fast
    Built with Fastify Framework (the fastest nodejs framework).
  • Efficient
    CPU clustered and using response stream.
  • Shared Proxy Cache
    A remote image is not downloaded but will be saved on client browser or proxy cache.
  • Firewall Request
    You are able to set this service to work on spesific domain only (protected from direct access).

Installation

  1. Download or clone this repo.
  2. Install with npm install.
  3. Upload to your server.
  4. Run node server.js

Note:

  • See config.js to set firewall and adjust max-age for cache.

Query Parameter

  • url : URL Image target.
  • referer : Set the referer image. [optional]
  • mime : Set the mime type of image (ex: png). [optional]
  • v : Set the version to refresh cache. [optional]

Note:

  • Mime type will detect automatically if the url included extension.
  • jQuery Ajax cache: false will detected automatically.

Example

This will GET image with spoofing referer.

<html>
    <head>
    </head>
    <body>
        <img src="http://localhost:3000/?referer=https://manganelo.com&url=https://s7.mkklcdnv7.com/mangakakalot/l2/love_parameter/chapter_112_qa/1.jpg">
    </body>
</html>

Alternative

If you don't have hosting for NodeJS, we have the PHP version of this project.
Here is the PHP version >> https://github.com/aalfiann/img-spoof

About

This is a very simple and fast to get an image with spoofing referer [NodeJS].

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published