4D v14.3WA SET URL FILTERS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
WA SET URL FILTERS
WA SET URL FILTERS
The WA SET URL FILTERS command sets up one or more filters for the Web area designated by the * and object parameters. Before loading any page requested by the user, 4D consults the list of filters in order to check whether or not the target URL is allowed. The evaluation of the URL is based on the contents of the filtersArr and allowDenyArr arrays. If the requested URL is not allowed, it is not loaded and the On URL Filtering form event is generated. The filtersArr and allowDenyArr arrays must be synchronized.
If there is a contradiction at the configuration level (the same URL is both allowed and denied), the last setting is the one taken into account. To disable URL filtering, call the command and pass empty arrays or pass, respectively, the values "*" and True in the last elements of the filtersArr and allowDenyArr arrays. Once the command has been executed, the filters become a property of the Web area. If the filtersArr and allowDenyArr arrays are deleted or reinitialized, the filters remain active as long as the command has not been executed again. To find out the active filters for an area, you must use the WA GET URL FILTERS command. Important: The filtering of URLs carried out by this command only applies to the "URL" variable associated with the Web area (variable usually enterable and displayed in the form). You want to deny access for all the .org, .net and .fr Web sites: ARRAY TEXT($filters;0) You want to deny access for all Web sites except Russian ones (.ru): ARRAY TEXT($filters;0) You want to allow access only to 4D Web sites (.com, .fr, .es, etc.): ARRAY TEXT($filters;0) You want to allow local access to the documentation only (found in the folder C://doc): ARRAY TEXT($filters;0) You want to allow access for all sites except one, for example the Elcaro site:
ARRAY TEXT($filters;0) You want to deny access to specific IP addresses: ARRAY TEXT($filters;0) |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v11 SQL Release 2 SEE ALSO
WA GET URL FILTERS ARTICLE USAGE
4D Language Reference ( 4D v11 SQL Release 6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||