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

If you need to extract URLs from HTML for a project, enhanced user experience, security measures, or another reason, we have an API for that. This article will provide step-by-step instructions on how to use the following API to extract resolved links from an input HTML file or URL of a file in PHP.

Image for post
Image for post

To begin, we need to run this command to install the client:

composer require cloudmersive/cloudmersive_document_convert_api_client

After this, we are ready to create an instance of the API and call the function with the following code:

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey $config…

Do you perform regular validation tests on URLs? If not, you may be putting your web applications and other internal resources at risk. SSRF attacks can threaten not only servers, but other connected private information such as cloud services in AWS and OpenStack. The following API can assist in SSRF threat protection by checking if an input URL is at risk.

Image for post
Image for post

First, we will run this command to install the client:

composer require cloudmersive/cloudmersive_validate_api_client

Next, we are going to call the URL SSRF request function:

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

Extracting URLs from an HTML file can be useful in a variety of ways. For example, if you have a web application that allows users to upload their backup bookmark file, using a tool to extract the resolved links and title will automate the process so the user doesn’t have to insert them manually. It can also be used as an added security feature to ensure there aren’t any hidden links that could contaminate your application. The following API will extract resolved URLs from an HTML file to assist with these and other tasks.

Image for post
Image for post

To use the API in Java…


SSRF attacks are generally used to target internal systems protected by firewalls that are inaccessible from the external network. Through these targeted strikes, the attacker gains full or partial control of the requests sent by a web application. The following API can assist in protecting your business from these threats by automatically testing uploaded URLs.

Image for post
Image for post

To begin the test, we will install the Maven SDK by adding a reference to the repository in pom.xml:

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

Then add a reference to the dependency:

<dependencies>
<dependency>
<groupId>com.github.Cloudmersive</groupId>
<artifactId>Cloudmersive.APIClient.Java</artifactId>
<version>v3.90</version>
</dependency>
</dependencies>

Our next step is to add…


Let’s be real; Microsoft Word may be the go-to for creating and editing business documents, but it’s not exactly the prettiest or most presentable format. When it comes to presentability, PDF files win every time; they are tough to edit, so clients won’t modify the documents, and formatting from the original document can transfer seamlessly. The following API will make automatically converting DOCX files to PDFs a cinch.

Image for post
Image for post

To use the API in Apex, you will first need to download and copy the /client folder into your Apex project:

Download Apex Client

For the next step, you can call the…


Do you need to extract data from an HTML file? If so, we have an API that can easily assist in extracting resolved URLs (fully qualified if possible) from an input HTML file. To ensure the process runs smoothly you will need either the HTML file or the URL of a file to perform the operation on; you have the option to include the base URL of the page as well.

Image for post
Image for post

To get things started in Node.JS, we will run this command to install the SDK:

npm install cloudmersive-convert-api-client –save

Or, add this snippet to your package.json:

"dependencies": { "cloudmersive-convert-api-client"…

Testing URLs on the front-end of a process is a simple action that can save you from future headaches. Using the following API, you can automatically test a URL for Server Side Request Forgery (SSRF) threats in Node.JS. This will ensure your web applications remain secure from these custom-made attacks.

Image for post
Image for post

To start the process, we will first run this command to install the SDK:

npm install cloudmersive-validate-api-client --save

Or, add this snippet to your package.json:

"dependencies": {
"cloudmersive-validate-api-client": "^1.3.9"
}

Once the installation is complete, we are ready to call the function with the following code:

var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client')…

Is it just me, or do you feel like every day you hear about a new form of cyber attack? To guard against these threats, we will be discussing how to use an API to automatically scan files for viruses, malware, and other threats in Salesforce Apex. The best feature of this particular virus protection is that it will identify zero-day threats that aren’t listed in the database of known malware signatures.

Image for post
Image for post

To kick things off, you will need to download and copy the /client folder into your Apex project:

Download Apex Client

For the next step, you can configure…


If you have an older web application, there is a chance you could have a security risk lurking in the corners. Extracting links from an HTML file is an efficient method to identify other linked applications, related websites, or web technologies that could affect your business. To assist in testing this facet of web security, the following API will pull out the resolved URLs from an input HTML file.

Image for post
Image for post

To use the Cloudmersive API, run this command to install the client:

pip install cloudmersive-convert-api-client

Next we are going to configure the API key, instance the API, and call the function…


Server Side Request Forgery (SSRF) threats are yet another form of attack that businesses need to guard against. While a Cross-Site Request Forgery (CSRF) targets the user, SSRF attacks specifically target a server by sending back-end requests from vulnerable web applications. To ensure this doesn’t happen to you, we have developed an API that will check an input URL for SSRF threats.

Image for post
Image for post

To use this API, we first need to install the SDK:

pip install cloudmersive-validate-api-client

Next, we are going to create an instance of the API and call the function with the following code:

from __future__ import print_function import…

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