When you set up a crawl you can define what the crawler should crawl or not crawl by respecting a pattern of URLs.
To do so, in your crawl configuration, there is a section URL pattern filtering.
Click on this section and then check Enable these filters.
Next, click on the button Add rules to add regex rules that will include or exclude the URLs that match them.
A new window opens where you can inform the different rules of inclusion or exclusion.
Click on the + icon to add more or - to remove one that already exists.
You can then provide a sample (a list of URLs) to check how your rules will work.
4 . Once you have listed some URLs, click on the button Check filters. This will show you the results for each sample URL. If it is taken into account in the crawl you will see a icon. If it is ignored in the crawl, you will see a icon.
When defining the rule list, in the system the exclusions can be evaluated first:
A URL will be included in this crawl if no rules exclude it.
If you provide any include rules, then the URL must also match an include rule.