How to use Fense ?

Fense is a versatile security service that offers features like blocking proxies, VPNs, Tor networks, geolocation blocking, and referrer-based blocking. By integrating Fense directly into your website, you can take full advantage of its capabilities and enhance your website's protection.

What if I don't use the WordPress CMS ?

Don't worry ,if your website based on other cms like laravel ,pure php,CakePHP or other cms you can use fense without any problem here is a complete guide of how you can add fense protection to your website

Simply choose the language from the list below :

Api Response

You can always get information about any ip and check if it's a proxy or not.

From our api Endpoint You can get information about any IP for example.

    
        https://api.fense.in/API_TOKEN/[IP address]
    

1. Example of Good ip

We will now scan a Good Ip in this Example we will use DNS From google 8.8.8.8

    
        https://api.fense.in/API_TOKEN/8.8.8.8
    

as you can see in response that Proxy Equals to no "proxy": "no" That Means this ip is clean

    
       {
        "status": "success",
        "ip": "8.8.8.8",
        "hostname": "dns.google",
        "city": "Mountain View",
        "region": "California",
        "country": "US",
        "lang": "English",
        "loc": "37.4056,-122.0775",
        "org": "AS15169 Google LLC",
        "proxy": "no"
        }
    

2. Example of Bad ip

We will now scan a Bad Ip in this Example we will use Random proxy ip 178.212.54.161

    
        https://api.fense.in/API_TOKEN/178.212.54.161
    

as you can see in response that Proxy Equals to yes "proxy": "yes" That Means this ip is proxy

    
       {
        "status": "success",
        "ip": "178.212.54.161",
        "hostname": "178-212-54-161.lss.net.pl",
        "city": "Midzyrzecz",
        "region": "Lubusz",
        "country": "PL",
        "lang": "English",
        "loc": "52.4388,15.5677",
        "org": "",
        "proxy": "yes"
        }
    

PHP

Use this code for any php based framework,If you can create your own code feel free to do that .

1. Using Curl

    
        <?php

            $curl = curl_init();

            curl_setopt_array($curl, [
                CURLOPT_URL => "https://api.fense.in/API_TOKEN/[IP address]",
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_ENCODING => "",
                CURLOPT_MAXREDIRS => 10,
                CURLOPT_TIMEOUT => 30,
                CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                CURLOPT_CUSTOMREQUEST => "GET",
            ]);

            $response = curl_exec($curl);
            $err = curl_error($curl);

            curl_close($curl);

            if ($err) {
                echo "cURL Error #:" . $err;
            } else {
                echo $response;
            }
    

2. Using Guzzle

    
        <?php

        $client = new \GuzzleHttp\Client();

        $response = $client->request('GET', 'https://api.fense.in/API_TOKEN/[IP address]');

        echo $response->getBody();
    

Python

Use this code for any python Project ,If you can create your own code feel free to do that .

1. Using Requests

    
      import requests

        url = "https://api.fense.in/API_TOKEN/[IP address]"

        response = requests.get(url, headers=headers)

        print(response.json())
    

JavaScript

Use this code for any JavaScript based framework,If you can create your own code feel free to do that .

1. Using Axios

    
       import axios from 'axios';

        const options = {
          method: 'GET',
          url: 'https://api.fense.in/API_TOKEN/[IP address]'
        };

        try {
            const response = await axios.request(options);
            console.log(response.data);
        } catch (error) {
            console.error(error);
        }
    

2. Using jQuery

    
        const settings = {
            async: true,
            crossDomain: true,
            url: 'https://api.fense.in/API_TOKEN/[IP address]',
            method: 'GET'
        };

        $.ajax(settings).done(function (response) {
            console.log(response);
        });
    

3. Using Fetch

    
       const url = 'https://api.fense.in/API_TOKEN/[IP address]';
        const options = {
            method: 'GET'
        };

        try {
            const response = await fetch(url, options);
            const result = await response.text();
            console.log(result);
        } catch (error) {
            console.error(error);
        }
    

Have any questions? Get in Touch