Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    URL blocking by keyword

    Scheduled Pinned Locked Moved pfBlockerNG
    9 Posts 4 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HowieFQ
      last edited by

      Hi,

      Is it possible to block URL's by keyword?
      For example adding a keyword of "tiktok" will block all URLs with the keyword "tiktok" in it.

      Regards,
      Howie

      noplanN 1 Reply Last reply Reply Quote 0
      • noplanN
        noplan @HowieFQ
        last edited by

        @howiefq

        DNSBL wildcard can do something like that

        BR np

        H 1 Reply Last reply Reply Quote 0
        • H
          HowieFQ @noplan
          last edited by HowieFQ

          @noplan

          Yes, I understand you can add .tiktok.com (wildcard *.tiktok.com) to also block all subdomains. But I'm looking for something that blocks at both ends. ie: .tiktok. (wildcard *.tiktok.* i.e. any TLD).

          noplanN 1 Reply Last reply Reply Quote 0
          • noplanN
            noplan @HowieFQ
            last edited by

            @howiefq

            Have you tried the wildcard at the end

            Have not thought about that

            But should work that way

            1 Reply Last reply Reply Quote 0
            • Alejo 0A
              Alejo 0
              last edited by

              @HowieFQ
              Do you have pfBlockerNG installed?
              If so you could add a GeoIP alias and using TikTok's ASN number
              Create a block outgoing rule using the previous alias. pfBlocker can create such a rule for you automatically on the GUI

              TikTok AS138699

              I didn't come up with this myself so credit where credit is due: https://forum.netgate.com/topic/177149/blocking-wechat-and-tiktok

              The darker the night, the brighter the stars.

              noplanN 1 Reply Last reply Reply Quote 1
              • noplanN
                noplan @Alejo 0
                last edited by

                @alejo-0 said in URL blocking by keyword:

                add a GeoIP alias and using TikTok's ASN number

                oh wow thats an interesting one thanks

                br
                NP

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan
                  last edited by

                  There is always a regex answer.

                  So :

                  0ded4723-77dd-4445-b1be-5a0410f93281-image.png

                  and bye bye toktik :

                  fe77a1d0-27d2-46c4-b1f4-a109084e511f-image.png

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  noplanN H 2 Replies Last reply Reply Quote 4
                  • noplanN
                    noplan @Gertjan
                    last edited by

                    @gertjan said in URL blocking by keyword:

                    There is always a regex answer.

                    damn man awesome !
                    THX great !

                    R E S P E C T

                    never ever thought about this ... ! 👍 👍 🤙 🤙

                    1 Reply Last reply Reply Quote 1
                    • noplanN noplan referenced this topic on
                    • noplanN noplan referenced this topic on
                    • H
                      HowieFQ @Gertjan
                      last edited by

                      @gertjan

                      oh wow, awesome, that's exactly what I wanted! Works perfectly!

                      Thank you!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.