' Hotline Analytics (HA) API
Sabrina H3 the_Hotline Help

Hotline Analytics (HA) API

Hotline Analytics runs server side and can trace connections back to the Service Provider. Google Analytics does not. Hotline Analytics is easy to set up, and you can try it before you buy it. Hotline Analytics logs the following:

The Internet is a network of networks and each of those networks is an autonomous system. Internet Service Providers (ISP) are assigned an Autonomous System Number (ASN). Internet Addresses are allocated in blocks to an ISP those IP address block assignments are public information.

Hotline Analytic Report (Example Item)

1784486658  97.106.51.238  (Sun 02:44:18 PM)
AS33363   Charter Communications Inc (spectrum.com)
Internet Service Provider β˜…  charter communications inc
Edgewater, FL US (1) 32132 πŸ‡ΊπŸ‡Έ
UA: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5.2 Safari/605.1.15 Ddg/26.5.2
URL: sabrina.info/13862103300/RollAnotherOne.php
Backlink: http://sabrina.info/13862103300/
Lat: 29.000350952148 Long: -80.912063598633

The API Hook

Sabrina H3 Cloud includes API hooks for our user accounts. Data is collected weekly in the ~/Analytics folder. You need to pass the following PHP Server variable data to that API connection. For example: https://Sabrina.info/UserID/theHook.php

Try It

Try our API before you buy it. Just copy (and paste) the code below using your favorite text editor. Then save it in your home directory as HAinclude.php. Then use the PHP include statement to include "HAinclude.php" in your home page document "index.php". The following URI, seen in the code below: Sabrina.info/DEMO/theHook.php is the hook for the demo.

HAinclude.php

	<?php
	$ip = $_SERVER['REMOTE_ADDR'];
	$userAgent = $_SERVER['HTTP_USER_AGENT'];
        // Replace the spaces with underscores
	$userAgent = str_replace(" ", "_", $userAgent);

	$chk  = $_SERVER["HTTP_REFERER"];
		if (isset($_SERVER["HTTP_REFERER"])) { $rf = $chk; }
		else { $rf = 'None'; } 

	$fqdn = $_SERVER['HTTP_HOST'];
	$sn = $_SERVER['REQUEST_URI'];
	$sn = str_replace("&", "{amp}", $sn); // Replace & with {amp} code

	$timeout = 10;
	$url = "https://Sabrina.info/DEMO/theHook.php?ip=" . $ip;
        $url = $url . "&agent=" . $userAgent . "&rf=" . $rf;
        $url = $url . "&sn=" . $fqdn . $sn;

	$curl = curl_init();
	curl_setopt($curl, CURLOPT_URL, $url);
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  	curl_setopt($curl, CURLOPT_TIMEOUT, $timeout );
	curl_setopt($curl, CURLOPT_HEADER, false);
	$data = curl_exec($curl);
	curl_close($curl);
	?>

Sabrina H3 Cloud

Sabrina H3 Cloud provides access to your messages and media attachments. Data is stored in folders under your UserID root directory. Access your data via a URL in the following format: https://sabrina.info/UserID. You directly access any of those resources in your Sabrina H3 Cloud space.

Your web designers can use our H3 Analytics API to trace IP addresses anywhere on your website. Google Analytics does not trace IP addresses. View your H3 Analytics data on the Sabrina H3 cloud in the Analytics folder using the following command string. https://Sabrina.info/UserId/all.php.

Hotline Analytic Data

Hotline Analytics files are named "HA" followed by the numeric year and the week of the year. They are stored in the Java Object Script Notation (.json) format. For example: HA202625.json contains the analytic log entries for the twentyfiveth week of 2026.

Hotline Analytic Log Entry (Example Item)

{"ip":"97.106.51.238","U":"1784486658","URI":"sabrina.info/ 13862103300/RollAnotherOne.php","RF":"http://sabrina.info/13862103300 /","FL":"πŸ‡ΊπŸ‡Έ","AS":"33363","ISP":"Charter Communications Inc" ,"SL":"spectrum","TL":"com","OT":"Internet Service Provider", "CR":"charter communications inc","CC":"1","CITY":"Edgewater","STATE":"FL", "NC":"US","ZIP":"32132","LAT":"29.000350952148","LONG":"-80.912063598633" ,"UA":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5.2 Safari/605.1.15 Ddg/26.5.2","LT":"Sun2:44pm"}