# Sandbox.Http.IsAllowed

```csharp
static bool IsAllowed(System.Uri uri)
```

Check if the given Uri matches the following requirements:
1. Scheme is https/http or wss/ws
2. If it resolves to loopback, only allow ports 80/443/8080/8443
3. Not an ip address
4. Doesn't resolve to a private range

### Parameters

- `uri` (`System.Uri`): The Uri to check.

### Returns

`bool`: True if the Uri can be accessed, false if the Uri will be blocked.

Declared in [Sandbox.Http](/api/Sandbox.Http).
Assembly: `Sandbox.Engine`.
