Check HTML Text for SSRF Threats in Java

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.Cloudmersive</groupId>
<artifactId>Cloudmersive.APIClient.Java</artifactId>
<version>v3.90</version>
</dependency>
</dependencies>
// Import classes:
//import com.cloudmersive.client.invoker.ApiClient;
//import com.cloudmersive.client.invoker.ApiException;
//import com.cloudmersive.client.invoker.Configuration;
//import com.cloudmersive.client.invoker.auth.*;
//import com.cloudmersive.client.TextInputApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
TextInputApi apiInstance = new TextInputApi();
String value = "value_example"; // String | User-facing HTML input.
try {
HtmlSsrfDetectionResult result = apiInstance.textInputCheckHtmlSsrf(value);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TextInputApi#textInputCheckHtmlSsrf");
e.printStackTrace();
}

--

--

--

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

The AWS security landscape evolution

{UPDATE} CubeYourLife Hack Free Resources Generator

Mass mailer attack using Social Engineering Toolkit

{UPDATE} Police Siren Sound Hack Free Resources Generator

Some Home Truths about the “NHS Hack”

What I Read — December 2020: Afghan Video Games, Cyber Conflict, Disinformation, and Chinese…

HOW WAF PROTECTS YOUR WORKLOADS FROM CYBER MISCHIEF

Cyber Security Program for Startups

Cyber-Program-for-Startups

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

Getting started with Java

Java introduction image

A Deep Dive into Java 17

S.O.L.I.D — The 5 main principles of Object Oriented Designing

S → Single Responsibility Principle

Classes and Objects