Scan a URL for Phishing Threats in PHP

composer require cloudmersive/cloudmersive_validate_api_client
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
$apiInstance = new Swagger\Client\Api\DomainApi(


new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\PhishingCheckRequest(); // \Swagger\Client\Model\PhishingCheckRequest | Input URL request
try {
$result = $apiInstance->domainPhishingCheck($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DomainApi->domainPhishingCheck: ', $e->getMessage(), PHP_EOL;
}
?>

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Paying The Ransom Is Not The Plan — The True Cost of Compromise

$WISE token journey

In general, people are not aware of what their data is worth

Recap AMA Pejuang Crypto ID x Stay In Destiny World

Ulord Project Progress (From January 14, 2021 to January 20, 2021)

Smart Contract Security Audit Has Passed By TechRate

CryptoDiceHero Beta 1.0 Open Test Starts

[EN] TryHackMe 25 Days of Cyber Security: Day 21 Walkthrough

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

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

More from Medium

PhpStorm, Docker and Xdebug 3 on PHP 8.1 in 2022 [Tutorial Part 4.2]

PhpStorm new CLI interpreter

How to get mac address of client machine in PHP

How to Send a Message by WhatsApp API using PHP easily

WhatsApp API using PHP

Building an Amazon Giftcard giveaway using php and API-Platform