search cancel

Block download of files using filenames with Edge Secure Web Gateway (ProxySG)

book

Article ID: 256949

calendar_today

Updated On:

Products

Advanced Secure Gateway Software - ASG ProxySG Software - SGOS ProxySG Software - SGOS

Issue/Introduction

Using Edge Secure Web Gateway (ProxySG) you wish to block the download of files based on filename of the download.

A) Block filenames with the phrase "sample" in the filename

B) Block any URL containing the phrase "sample" (eg: https://example.com/sample)

 

Resolution

A) The filename of downloaded file is present in the Http header 'content-disposition'. Use the below CPL to block based on this field.

<proxy>
response.header.Content-Disposition="sample" Deny

B) Implement with the below CPL:

<proxy>
url.path.substring="sample" deny
url.host.substring="sample" deny

Additional Information

Attachments