Comments (1)
There's nothing built-in to do that, but it would be pretty easy to add as a custom middleware. Look at the validateRequest
example in the readme: https://github.com/nfriedly/node-unblocker#requestmiddleware
You could use ip.isPrivate(URL.parse(data.url).hostname)
to do the hard part - https://www.npmjs.com/package/ip - it will return false for anything that isn't an IP, so you might want an extra check for localhost (and any other hostname's your concerned about).
( https://www.npmjs.com/package/hostname-is-private or https://www.npmjs.com/package/private-ips would guard against that, but neither is synchronous so they won't easily work as middleware for unblocker. You could have express run one of them before unblocker, but that's more work on your end.)
from node-unblocker.
Related Issues (20)
- HBO max and Netflix videos not playing HOT 4
- Instagarm dms not loading HOT 2
- Mixed Content Issue
- Proxy redirects to ogiginal site which is blocked HOT 6
- roblox HOT 1
- new node unlocked links HOT 5
- [Bug] Does Not work. HOT 10
- Weird Redirect when deploying with openode.io HOT 2
- Error HOT 1
- Discord isn't working. HOT 5
- Discord link HOT 2
- Next.js support HOT 3
- maleik2
- JustAguy HOT 1
- In Search Of A Proxy HOT 2
- Setting a static URL without typing it after the prefix HOT 7
- Google safe-browsing flags unblocker as phishing
- Proxy not working with Nike.com and Cloudflare HOT 2
- My administrator's website still blocks it even when I use unblockernode
- Z_DATA_ERROR HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-unblocker.