_validate_url_ssrf_relaxed() — langchain Function Reference
Architecture documentation for the _validate_url_ssrf_relaxed() function in _ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD d880c4e7_f4e7_50c3_e4c3_8334dc609dac["_validate_url_ssrf_relaxed()"] 76eef743_34da_b2b6_eda1_09a024269dbd["_ssrf_protection.py"] d880c4e7_f4e7_50c3_e4c3_8334dc609dac -->|defined in| 76eef743_34da_b2b6_eda1_09a024269dbd 6c828a82_ad0c_f5f1_d776_92c196a03eaf["validate_safe_url()"] d880c4e7_f4e7_50c3_e4c3_8334dc609dac -->|calls| 6c828a82_ad0c_f5f1_d776_92c196a03eaf style d880c4e7_f4e7_50c3_e4c3_8334dc609dac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/_security/_ssrf_protection.py lines 304–308
def _validate_url_ssrf_relaxed(v: Any) -> Any:
"""Validate URL for SSRF protection (relaxed mode - allows private IPs)."""
if isinstance(v, str):
validate_safe_url(v, allow_private=True, allow_http=True)
return v
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does _validate_url_ssrf_relaxed() do?
_validate_url_ssrf_relaxed() is a function in the langchain codebase, defined in libs/core/langchain_core/_security/_ssrf_protection.py.
Where is _validate_url_ssrf_relaxed() defined?
_validate_url_ssrf_relaxed() is defined in libs/core/langchain_core/_security/_ssrf_protection.py at line 304.
What does _validate_url_ssrf_relaxed() call?
_validate_url_ssrf_relaxed() calls 1 function(s): validate_safe_url.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free