# WebContentFilteringPolicyProperty

The policy that specifies which URLs end users are allowed to access or which URLs or domain categories they are restricted from accessing for enhanced security.

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesweb as workspacesweb } from 'aws-cdk-lib';
const webContentFilteringPolicyProperty: workspacesweb.CfnBrowserSettings.WebContentFilteringPolicyProperty = {
  allowedUrls: ['allowedUrls'],
  blockedCategories: ['blockedCategories'],
  blockedUrls: ['blockedUrls'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_workspacesweb as workspacesweb

web_content_filtering_policy_property = workspacesweb.CfnBrowserSettings.WebContentFilteringPolicyProperty(
    allowed_urls=["allowedUrls"],
    blocked_categories=["blockedCategories"],
    blocked_urls=["blockedUrls"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.workspacesweb.*;

WebContentFilteringPolicyProperty webContentFilteringPolicyProperty = WebContentFilteringPolicyProperty.builder()
        .allowedUrls(List.of("allowedUrls"))
        .blockedCategories(List.of("blockedCategories"))
        .blockedUrls(List.of("blockedUrls"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WorkSpacesWeb;

var webContentFilteringPolicyProperty = new WebContentFilteringPolicyProperty {
    AllowedUrls = new [] { "allowedUrls" },
    BlockedCategories = new [] { "blockedCategories" },
    BlockedUrls = new [] { "blockedUrls" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

webContentFilteringPolicyProperty := &WebContentFilteringPolicyProperty{
	AllowedUrls: []*string{
		jsii.String("allowedUrls"),
	},
	BlockedCategories: []*string{
		jsii.String("blockedCategories"),
	},
	BlockedUrls: []*string{
		jsii.String("blockedUrls"),
	},
}
```

## Properties

- `allowedUrls`: string[] — URLs and domains that are always accessible to end users.

- `blockedCategories`: string[] — Categories of websites that are blocked on the end user's browsers.

- `blockedUrls`: string[] — URLs and domains that end users cannot access.
