
## Create a rule for a segment

A rule defines the criteria for which users are included in a segment. To add a rule to a segment:

* Log in to the Statsig console at https://console.statsig.com
* On the left-hand navigation panel, select **Segments**
* Select the segment where you want to add a rule
* Click the **Add New Rule** button
* Select the criteria to target a set of users. For example, select **Email** with the **Contains any of** operator, then enter your company's email domain to target only internal employees.

{% figure %}
![Segment rule configuration interface](/images/segments/add-rule/129094975-a78b8caf-ac0d-4b14-96f7-adba2fe73f1f.png)
{% /figure %}

* Click the **Add Rule** button
* Click the **Save Changes** button at the top right of the **Rules** section
