NRProxy
NRProxy means No Reverse Proxy (for browser only).
How this work
This library is worked as client-side in the browser, to protect your website from unkown web proxies out there. The rejected web proxies will be turn into your backlink and redirect the visitor to your original website automatically.
Install using NPM
$ npm install nrproxy // then use with path<script src="node_modules/nrproxy/dist/nrproxy.js"></script>
Or simply use with CDN
<!-- Always get the latest version --><!-- Not recommended for production sites! --> <!-- Get minor updates and patch fixes within a major version --> <!-- Get patch fixes within a minor version --> <!-- Get a specific version --><!-- Recommended for production sites! -->
Usage
;
If you have your own web proxy and want to allow it
;
Note:
- If you allow many domains, then the rejected proxy will always redirected to the first array of domain.
- Please use file
nrproxy.js
fromdist
directory, because web proxies out there is very smart, we just need to obfuscated it.
Example
NRProxy Example