> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Enable wildcard domains in Squid
- URL: https://kudithipudi.org/how-to-enable-wildcard-domains-in-squid/
- Published: 2015-12-15T20:41:57.000Z
- Updated: 2015-12-15T20:41:57.000Z
- Description: We were trying to modify some ACL (access control lists) in squid to allow traffic to certain websites. Instead of adding each individual hostnames in a...
- Author: admin
- Tags: HOWTO, Networking, Technology, Uncategorized, howto, linux, squid, #wp, #wp-post, #Import 2026-08-23 02:32

We were trying to modify some ACL (access control lists) in squid to allow traffic to certain websites. Instead of adding each individual hostnames in a domain, we wanted to add all traffic to a certain domain.

Document on the interwebs is old or not clear on how to achieve this.

After some trial and error, here is what works

say you want to allow all traffic to the google.com domain, you create a access list using dstdomain like below

```
acl name_of_acl dstdomain .google.com
```

The “.” before the domain name acts as a wildcard

Then you use the acl to allow http access to it like below

```
http_access allow name_of_acl
```