# SSRFSafeSyncTransport

> **Class** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/_security/_transport/SSRFSafeSyncTransport)

httpx sync transport that validates DNS results against an SSRF policy.

Sync mirror of `SSRFSafeTransport`. See that class for full documentation.

## Signature

```python
SSRFSafeSyncTransport(
    self,
    policy: SSRFPolicy = DEFAULT_SSRF_POLICY,
    transport_kwargs: object = {},
)
```

## Extends

- `httpx.BaseTransport`

## Constructors

```python
__init__(
    self,
    policy: SSRFPolicy = DEFAULT_SSRF_POLICY,
    transport_kwargs: object = {},
) -> None
```

| Name | Type |
|------|------|
| `policy` | `SSRFPolicy` |
| `transport_kwargs` | `object` |


## Methods

- [`handle_request()`](https://reference.langchain.com/python/langchain-core/_security/_transport/SSRFSafeSyncTransport/handle_request)
- [`close()`](https://reference.langchain.com/python/langchain-core/_security/_transport/SSRFSafeSyncTransport/close)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/a4b4a7b9a6d8b5eb2352e26e110f1b7beffc6f62/libs/core/langchain_core/_security/_transport.py#L130)