Categories
Content Marketing

Allow URL in squid using regex

In this post, we will describe how to use regex for connecting to destination web site using squid.

  1. Open the squid configuration file:

Vi /etc/squid3/squid.conf

  1. Defining the destination url

########Object Definition###################

Acl google_api url_regex ^http://ajax.googleapis.com/ajax/*

  1. Authorize access:

######################Autorization######################

http_access allow google_api

  1. After saving the configuration we will proceed to reload squid process

/etc/ini.d/squid3 reload

Leave a Reply

Your email address will not be published. Required fields are marked *