Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Gregory_Link
Contributor

Regex for TLD Blocks

I've been working for a little while to get a regex crafted that works to block identified Top Level Domains via the App/URL blade and so wanted to share my results.  This could also easily be modified via a NOT and optional list of domains that you want to allow instead of domains you want to block.  

Just replace TLD with a domain you want to match.

^[^:\/]+:\/?\/?[^\/]+\.TLD\/

1 Reply
Alastair_Haddix
Participant

So far I have found this to be more effective. 

(?:[a-zA-Z]*\.)+(TLD)[/|\s]

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 20 May 2025 @ 11:30 AM (PDT)

    Las Vegas: Check Point Hybrid Mesh

    Wed 21 May 2025 @ 11:30 AM (MST)

    Tempe, AZ: Check Point Hybrid Mesh

    Tue 03 Jun 2025 @ 06:00 PM (EDT)

    Montreal: CPX Recap

    Tue 10 Jun 2025 @ 06:00 PM (EDT)

    Quebec City: CPX Recap
    CheckMates Events