How to Check if an IP Address is a Tor Node Server in Node.JS

With the increase in online commerce and remote business dealings, the use of VPNs and other privacy-preserving technology has risen in tandem. Tor servers are one of these services; they hide the original IP Address of a user, reducing the ability to trace information back to its source. The following API will allow you to check if an IP Address is a Tor exit node server.

To run this API, our first step is to install the client software:

npm install cloudmersive-validate-api-client –save

Or, you can add this snippet to your package.json:

"dependencies": {
"cloudmersive-validate-api-client": "^1.2.4"

Then, you can call our function, IPAddressIsTorNode:

var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');
var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;

Now, you can be informed on who is accessing your content and how. To access your API Key, you van visit the Cloudmersive website; this will give you access to 800 free calls per month across our library of APIs.

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.