4D v16.3WA SET URL FILTERS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.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, 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 URL filtering performed by this command applies to any request to change the primary URL of the page, whether from the user, javascript code or 4D code, except for the WA OPEN URL command and URLs starting with "javascript:". 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)
See also
|
PROPERTIES
Product: 4D
HISTORY
Created: 4D v11 SQL Release 2 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||