> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# IsIpOrURL function

> Property decorator that validates whether the value is a valid IPv4/IPv6 address or a fully qualified domain name (URL).

# IsIpOrURL

## Summary

Property decorator that validates whether the value is a valid IPv4/IPv6 address or a fully qualified domain name (URL).

## Signature

```typescript theme={null}
IsIpOrURL: (validationOptions?: ValidationOptions, isIPOptions?: Parameters<typeof isIP>[1], isURLOptions?: Parameters<typeof isURL>[1]) => (object: object, propertyName: string) => void
```

## Parameters

### validationOptions

**Type**:`ValidationOptions`
**Optional**: Yes

Optional class-validator validation options.

### isIPOptions

**Type**:`Parameters<typeof isIP>[1]`
**Optional**: Yes

Optional options for validation.

### isURLOptions

**Type**:`Parameters<typeof isURL>[1]`
**Optional**: Yes

Optional options for validation.

## Returns

**Type**:`(object: object, propertyName: string) => void`

Property decorator that validates whether the value is a valid IPv4/IPv6 address or a fully qualified domain name (URL).

## Remarks

Built on top of `class-validator`'s `isIP` and `isURL` helpers. Use on config properties that represent server hostnames or addresses.

## Examples

### Example 1

```typescript theme={null}
```
