---
title: Redirect Attempt Limit
description: When the value of this property is greater than zero, it defines the maximum number of redirects allowed for a browser session. After this number, the agent blocks the request.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.redirect.attempt.limit
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.redirect.attempt.limit.html
---

# Redirect Attempt Limit

When the value of this property is greater than zero, it defines the maximum number of redirects allowed for a browser session. After this number, the agent blocks the request.

Specify a value greater than zero. For example, if the property is set to 3, then the agent blocks the request on the fourth redirect.

Use this property to mitigate the risk of infinite redirection loops.

|                          |                                                                                                                                                                                                                                           |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.redirect.attempt.limit`                                                                                                                                                                                             |
| Aliases                  | `org.forgerock.agents.redirect.attempt.limit`   Introduced in Java Agent 5.6`com.sun.identity.agents.config.redirect.attempt.limit`   Introduced in Java Agent 5.0   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 6 |
| Function                 | Login                                                                                                                                                                                                                                     |
| Type                     | Integer                                                                                                                                                                                                                                   |
| Default                  | `0`                                                                                                                                                                                                                                       |
| Bootstrap property       | No                                                                                                                                                                                                                                        |
| Required property        | No                                                                                                                                                                                                                                        |
| Restart required         | No                                                                                                                                                                                                                                        |
| Local configuration file | `AgentConfig.properties`                                                                                                                                                                                                                  |
| AM console               | Tab: `Global`Title: `Redirect Attempt Limit`                                                                                                                                                                                              |
