- CheckMates
- :
- Products
- :
- Quantum
- :
- Security Gateways
- :
- Regex for TLD Blocks
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×
Sign in with your Check Point UserCenter/PartnerMap account to access more great content and get a chance to win some Apple AirPods! If you don't have an account, create one now for free!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So far I have found this to be more effective.
(?:[a-zA-Z]*\.)+(TLD)[/|\s]
