Operation: Add Policy / Update Policy / Update Policy from API
Description: To Add/Edit Web Filter Policy for controlling user's Web Access. 

Sample Configuration
<WebFilterPolicy> <Name>Name</Name> <Description>Description</Description> <DefaultAction>Allow/Deny</DefaultAction> <EnableReporting>Enable/Disable</EnableReporting> <!-- Maximum permitted size (in MB), between 1 and 1536 MB --> <DownloadFileSizeRestriction>300</DownloadFileSizeRestriction> <DownloadFileSizeRestrictionEnabled>0/1</DownloadFileSizeRestrictionEnabled> <YouTubeEducationFilterEnabled>0/1</YouTubeEducationFilterEnabled> <YouTubeEducationFilter>Text</YouTubeEducationFilter> <GoogAppDomainListEnabled>0/1</GoogAppDomainListEnabled> <!-- comma-separated list of allowed domains for Google Apps --> <GoogAppDomainList>gmail.com, yahoo.com</GoogAppDomainList> <RuleList> <Rule> <CategoryList> <Category> <!--category name --> <ID>Extreme</ID> <type>WebCategory/URLGroup/UserActivity/DynamicCategory/FileType</type> </Category> : </CategoryList> <HTTPAction>Deny/Allow/Warn</HTTPAction> <HTTPSAction>Deny/Allow/Warn</HTTPSAction> <FollowHTTPAction>1/0</FollowHTTPAction> <Schedule>All The Time</Schedule> <PolicyRuleEnabled>1/0</PolicyRuleEnabled> </Rule> : </RuleList> </WebFilterPolicy>



Parameter Mandatory Default Description
NameNo  
Specify a name for the Web Filter Policy.
Name confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Maximum characters allowed are 50.
DescriptionNo  
Specify Policy description.
Description confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Maximum characters allowed are 255.
DefaultActionYes  
When default template is not given this parameter should provide for default action of policy.
DefaultAction confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Maximum characters allowed are 1.
  • Only 'Y', 'N' are allowed.
EnableReportingNo Enable 
Select to enable reporting of policy.
EnableReporting confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Only 'on' are allowed.
DownloadFileSizeRestrictionEnabledNo  
Enable to check for maximum allowed file download size in MB.
DownloadFileSizeRestrictionEnabled confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Only 't', 'f' are allowed.
DownloadFileSizeRestrictionYes  
Specify maximum allowed file download size in MB.
DownloadFileSizeRestriction confines to:
  • Type is 'SCALAR'.
  • Datatype is 'INTEGER'.
  • Range 0 to 1536 is allowed.
  • Maximum digits allowed are 4.
TemplateNo  
Select from the available templates to create new policy based on existing policy.
Template confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Comma (,) is not allowed.
  • Maximum characters allowed are 50.
  • UTF-8 character(s) are allowed.
YouTubeEducationFilterEnabledNo  
Enable to specify the unique ID provided by "You Tube for Schools" while registration.
YouTubeEducationFilterEnabled confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Only 't', 'f' are allowed.
YouTubeEducationFilterNo  
Specify the unique ID provided by "You Tube for Schools" while registration.
YouTubeEducationFilter confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Allowed Characters: (0-9a-zA-Z _@\-\.).
  • Maximum characters allowed are 44.
  • UTF-8 character(s) are not allowed.
GoogAppDomainListEnabledNo  
Enable to specify domains allowed to access google service.
GoogAppDomainListEnabled confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • Only 't', 'f' are allowed.
GoogAppDomainListNo  
Specify domains allowed to access google service.
GoogAppDomainList confines to:
  • Type is 'SCALAR'.
  • Datatype is 'STRING'.
  • DOMAINNAMES
  • Maximum characters allowed are 256.
RuleListNo  
Specify the rules contained in this policy
RuleList confines to:
  • Type is 'ARRAY'.
  • Datatype is 'OBJECT'.
  • webfilter::webfilterpolicyrules
  • Multiple values are allowed.



Operation   Status   Message
Update Policy200
Update Policy500
Update Policy502
Update Policy from API200
Update Policy from API500
Update Policy from API502
Add Policy200
Add Policy500
Add Policy502


) Copyright 2017 Sophos Limited. All rights reserved.
Sophos is registered trademarks of Sophos Limited and Sophos Group. All other product and company names mentioned are trademarks or registered trademarks of their respective owners.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise unless you are either a valid licensee where the documentation can be reproduced in accordance with the license terms or you otherwise have the prior permission in writing of the copyright owner.