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

    Blocking entire TLDs (.xxx and .sex) with pfSense+Squid+SquidGuard

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 2.1k 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.
    • NetViciousN Offline
      NetVicious
      last edited by

      Hi!

      I'm trying to block that two entire TLDs within SquidGuard but I cannot put .xxx or xxx on the Target Categories / Domain List  of a Denied target. It returns one error saying .xxx it's not a domain.

      I can use regex of course, I tried:

      • http://..xxx/. - nothing
      • ..xxx/. - nothing

      I set .xxx/ only but it blocks sites like http://www.yoursite.com/item.php?something**.xxx/**

      Any tip ?

      ..//\/ e t . \/ i c i o u s ..

      1 Reply Last reply Reply Quote 0
      • H Offline
        heper
        last edited by

        would stopping them to resolve work?

        you could use dns resolver wildcards to make entire TLD's resolve to localhost …
        advanced section in "services-->resolver'

        
        server:
        local-zone: "xxx" redirect
        local-data: "xxx 3600 IN A 127.0.0.1"
        
        

        result on client pc:

        
        heper@i7 ~ $ nslookup  hornytube.xxx     <---BEFORE
        Server:         10.0.0.1
        Address:        10.0.0.1#53
        
        Non-authoritative answer:
        Name:   hornytube.xxx
        Address: 87.250.153.105
        
        
        
        heper@i7 ~ $ nslookup  hornytube.xxx     <---- AFTER
        Server:         10.0.0.1
        Address:        10.0.0.1#53
        
        Name:   hornytube.xxx
        Address: 127.0.0.1
        
        
        
        heper@i7 ~ $ nslookup  pfsenseresolver.xxx
        Server:         10.0.0.1
        Address:        10.0.0.1#53
        Name:   pfsenseresolver.xxx
        Address: 127.0.0.1
        
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.