본문으로 건너뛰기

Java Agent

Overview

BotManager Java Agent is a macro detection and security solution that can be integrated into Java-based web applications. It detects macro activities in page and API requests and can automatically respond by blocking or using Captcha, Redirect, etc.

Java Agent Features

Easily integrates with Servlet-based web applications and supports both javax.servlet and jakarta.servlet environments.

Key Features

FeatureDescription
Page Request DetectionDetects and responds to macro activities when users make page requests
API Request DetectionDetects macro activities in REST API requests as well
Standalone UseWhen only Java Agent is installed, it responds to page requests (URL calls) only with Location header
Browser Agent IntegrationWhen used together with Browser Agent, it additionally provides Redirect response for asynchronous requests (XHR, Fetch)

Supported Environments

  • Servlet-based web applications
  • JDK 1.8 or higher
    • Supports both javax.servlet and jakarta.servlet environments
    • Supports HTTP and HTTPS requests

How It Works

BotManager Java Agent works in the following flow:

  1. Initialization: Initialize BotManager when the application starts.
  2. Request Detection: Call detectPage() or detectApi() when processing HTTP requests.
  3. Response Processing: Perform redirect through Location header or X-BotManager-Location header according to detection results.
Method Selection Guide
  • Page Requests: Use detectPage() method
  • API Requests: Use detectApi() method
  • Each method applies different detection logic.

Installation Methods

BotManager Java Agent is installed by adding a JAR file to the project.

For detailed installation methods, refer to Installation and Initialization.

Configuration Options

BotManager Java Agent provides various configuration options:

OptionTypeRequiredDescription
tenantIdStringUnique ID for customer identification
domainNameStringDomain of the server receiving requests
serverUrlStringDetection server URL (default provided)
protectionUrlStringBlock page URL (default provided)
httpRequestTimeoutintHTTP request timeout (ms)
logLevelStringLog level (ERROR, WARN, INFO, DEBUG)

For detailed configuration options, check Configuration Options Reference.

Required Configuration

tenantId and domainName must be configured. You can check them in the BotManager console.