• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Feb 8, 2023, 10:26 AM

    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

    N 1 Reply Last reply Feb 8, 2023, 10:49 AM Reply Quote 0
    • N
      noplan @HowieFQ
      last edited by Feb 8, 2023, 10:49 AM

      @howiefq

      DNSBL wildcard can do something like that

      BR np

      H 1 Reply Last reply Feb 8, 2023, 11:12 AM Reply Quote 0
      • H
        HowieFQ @noplan
        last edited by HowieFQ Feb 8, 2023, 11:13 AM Feb 8, 2023, 11:12 AM

        @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).

        N 1 Reply Last reply Feb 8, 2023, 11:32 AM Reply Quote 0
        • N
          noplan @HowieFQ
          last edited by Feb 8, 2023, 11:32 AM

          @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
          • A
            Alejo 0
            last edited by Feb 8, 2023, 2:00 PM

            @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.

            N 1 Reply Last reply Feb 8, 2023, 2:59 PM Reply Quote 1
            • N
              noplan @Alejo 0
              last edited by Feb 8, 2023, 2:59 PM

              @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
              • G
                Gertjan
                last edited by Feb 8, 2023, 3:22 PM

                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 ??

                N H 2 Replies Last reply Feb 8, 2023, 4:55 PM Reply Quote 4
                • N
                  noplan @Gertjan
                  last edited by Feb 8, 2023, 4:55 PM

                  @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
                  • N noplan referenced this topic on Feb 8, 2023, 6:52 PM
                  • N noplan referenced this topic on Feb 8, 2023, 6:52 PM
                  • H
                    HowieFQ @Gertjan
                    last edited by Feb 8, 2023, 7:36 PM

                    @gertjan

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

                    Thank you!

                    1 Reply Last reply Reply Quote 0
                    3 out of 9
                    • First post
                      3/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received