Adding large number of Domains to proxy to be whitelisted or Blacklisted

book

Article ID: 171810

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

Adding large number of Domains to proxy to be whitelisted or Blacklisted

Resolution

Adding Multiple Domains in proxy quickly can be made possible either using CPL or VPM or CLI (To Add CPL in Local File)

Below Example is for "Blacklist" where Action will be "DENY", if you would like to White list, you can just change Action to "ALLOW"

1) Using CPL Code to add in Proxy Local Policy File
;======================================================
 

<proxy>
condition=Blacklist Deny

define url.domain condition Blacklist
domain1.com
domain2.com
IP_ Address1
IP_Address2
:
:

end

;==============================================================
2) Using VPM

Go to Configuration --> Policy --> Visual Policy Manager --> Create Web Access Layer or Add Rule in Existing Web Access Layer
Source: Any or Group or Client IP
Destination : Select Set --> New --> Request URL Category --> Policy --> Create New Category (Give it Name) ---> Copy paste List of Domains & IP Addresses
Set Action either ALLOW or DENY based on your requirements.

3) Using CLI [ Recommended to Add in Local policy and not in VPM]
Blue Coat SG-S400 Series#(config)inline policy local eof   ; Note you can change "eof" with any name to start and end with same name.

<proxy>
condition=Blacklist Deny

define url.domain condition Blacklist
domain1.com
domain2.com
domain3.com
IPAddress_1
IPAddress_2
:
:
:
end
eof
Blue Coat SG-S400 Series#(config)