All Projects → jshttp → forwarded

jshttp / forwarded

Licence: MIT license
Parse HTTP X-Forwarded-For header

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to forwarded

proxy-addr
Determine address of proxied request
Stars: ✭ 121 (+132.69%)
Mutual labels:  x-forwarded-for
Bug-Bounty-Scripts
Script for Bug Bounty
Stars: ✭ 17 (-67.31%)
Mutual labels:  x-forwarded-for
x-forwarded-filter
x-forwared filter for the masses
Stars: ✭ 15 (-71.15%)
Mutual labels:  x-forwarded-for

forwarded

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

Parse HTTP X-Forwarded-For header

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install forwarded

API

var forwarded = require('forwarded')

forwarded(req)

var addresses = forwarded(req)

Parse the X-Forwarded-For header from the given Node.js IncomingMessage object. Returns an array of the addresses, including the socket address for the req, in reverse order (i.e. index 0 is the socket address and the last index is the furthest address, typically the end-user).

Testing

$ npm test

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].