Mardi 09 decembre 2025 - 06h32m40s GMT+01:00 winter time.
Vous êtes connecté(e) sur le site depuis le Mardi 09 decembre 2025 - 06h32m40s.
Welcome to the page of my developments, projects in preparation/realization.
I often write articles about the configuration and administration of services on server machines GNU/Linux which are stored on howto.zw3b.fr - There are also other sections that may interest you. p>
Otherwise for development, programming HTML/JAVASCRIPT/PHP codes - below are some links - in addition to the docs I write on howto.zw3b.fr.
About: Prevent Identity Theft and phishing with DMARC
I opened a topic on Debian-FR.org: Servers Mails - Reports DMARC (SPF - DKIM) - analyze XML file? and a script SH (dmarc-file-dzip.sh) in comment 32 for unzip files DMARC reports.
And another documentation page I wrote: MTA - Mail error messages - SMTP return codes to analyze the returns (Status) of the recipient SMTP servers.
The API retrieves content from ZW3B [FR|TV|COM|NET|BLOG] websites in JSON acronym>
Preparing a PHP Class for clients so that they can authenticate from their server machine (its website) and access private/protected resources.
class zw3bApiClient()
Retrieve contents this way :
<?php
include '/your_directory/var/lib/php/zw3bApiClient.class.php';
//-------------------------------------------------------------------------
// CLIENT API CALL
$config = array();
//-----------------------
// BETA-TESTERS (Wilcard Origins)
// Minimun config
$config['api_name'] = 'BETA-TESTERS';
$config['client_project']['name'] = 'ZW3B-API-BETA-TESTERS';
//-----------------------
$zw3bApiClient = new zw3bApiClient();
$my_client = $zw3bApiClient->ClientModUsr($config);
// CLIENT API CALL
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
// REQUEST REPORTS / DMARC / ANALYSIS
$reports = new zw3bApiClientModReports($my_client);
$dmarc_analysis = $reports->dmarc('analysis', array(
'offset' => 0,
'limit' => 200,
'l' => 'EN'
)
);
// REQUEST REPORTS / DMARC / ANALYSIS
//-------------------------------------------------------------------------
echo '<pre>'.print_r(json_decode($dmarc_analysis),1).'</pre>';
//-------------------------------------------------------------------------
// REQUEST CONTENTS / DOCS / LST
$contents = new zw3bApiClientModContents($my_client);
$docs = $contents->docs('lst', array(
'offset' => 0,
'limit' => 30,
'l' => 'EN'
)
);
// REQUEST CONTENTS / DOCS / LST
//-------------------------------------------------------------------------
echo '<pre>'.print_r(json_decode($docs),1).'</pre>';
//-------------------------------------------------------------------------
// REQUEST CONTENTS / DOCS / GET / (cid)
$contents = new zw3bApiClientModContents($my_client);
$doc = $contents->docs('get', array(
'cid' => 2172,
'l' => 'FR'
)
);
// REQUEST CONTENTS / DOCS / GET / (cid)
//-------------------------------------------------------------------------
echo '<pre>'.print_r(json_decode($doc),1).'</pre>';
?>
Render exemple :