# Policies

In the Policies section is possible to create, modify or delete the policies related to the licenses of opensource components. Every policy can be associated with a set of projects using regular expressions or tags.

Every rule defines the licenses that are/are not allowed. The standard used is the SPDX, but specific extensions are provided for some proprietary licenses and specific licenses for some software producers.

![The policies screen](https://3502151236-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-naNCUtT6Gw1tfDjRR%2Fuploads%2Fx8V9BRznLsT3WWVbp8T4%2Fimage.png?alt=media\&token=357e3f33-c3ea-415d-a269-e8af70b42f91)

The system already provides pre-compiled templates to manage some common cases:

* exclusion of all Copyleft licenses
* exclusions of all Affero licenses
* exclusions of all GPL licenses

## Structure of a policy

A policy contains a list of licenses, and can be of two different types:

* DENY: it will deny all licenses listed in the policy
* ALLOW: it will allow **only** the policies listed in the policy

All policies applicable to a project, based on tag or on matching, will be computed together. In case of a violation, the pollcy will be clearly indicated in the report:

<figure><img src="https://3502151236-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-naNCUtT6Gw1tfDjRR%2Fuploads%2FqGTe1v467m61TasJXhbB%2Fimage.png?alt=media&#x26;token=abeb2db4-510f-4f68-aa2a-f8fd92e9d9f9" alt=""><figcaption></figcaption></figure>
