Skip to content

HTTP Backend

HTTP Backend Authorization verifies client requests via an external HTTP service. A 200 OK response from the backend grants access; any other status denies it. If the backend is unavailable, Alta applies a default action.

Backend Authorization

Backend URL: Backend URL:

http://example.com/stalker_portal/server/api/chk_flussonic_tmp_link.php

In the Ministra / Stalker settings turn on option “Temporary URL - Flussonic support”

Backend URL:

https://go.iptvportal.cloud/auth/arescrypt/

Portal Settings → Keys:

  • Name: Alta
  • Algorithm: ARESSTREAM
  • Mode: SM
  • Key Length: 1472 bit
  • Update Rate: 1:00:00

Channel Settings:

  • Auth: arescrypt
  • Encoded: on
  • Key: Alta

Backend URL:

http://example.com/tvmiddleware/api/streamservice/token/check/

Alta sends an HTTP GET request to the backend, including original URL parameters and these headers:

  • X-Session-Id – unique session ID
  • X-Real-Ip – client IP
  • X-Real-Path – requested path
  • X-Real-Origin – protocol + host + port
  • X-Real-Ua – User-Agent

Example: Simple PHP Backend

auth.php:

<?php
$token = $_GET['token'];
if ($token == '123') {
error_log(
"\n" .
" Session ID: " . $_SERVER['HTTP_X_SESSION_ID'] . "\n" .
" Real IP: " . $_SERVER['HTTP_X_REAL_IP'] . "\n" .
" Real Path: " . $_SERVER['HTTP_X_REAL_PATH'] . "\n" .
"Real Origin: " . $_SERVER['HTTP_X_REAL_ORIGIN'] . "\n" .
" Real UA: " . $_SERVER['HTTP_X_REAL_UA']
);
http_response_code(200);
} else {
http_response_code(403);
}

Run locally:

Terminal window
php -S 127.0.0.1:6000 auth.php

Backend URL:

http://127.0.0.1:6000

This is just an example and you should implement your own backend logic according to your specific requirements. For production, use nginx + php-fpm or another server setup.

If unauthorized access occurs, your backend may be unavailable.

Test with curl:

Terminal window
curl -v "http://127.0.0.1:6000?token=123"

If response hangs or shows “Connection refused”, check backend availability and address.