Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Referer (Internet Toolkit)

LabVIEW Internet Toolkit 6.0.2 Help
June 2008

NI Part Number:
370014C-01

»View Product Info

The Referer directive can be used to force users to enter a document from a specified path instead of jumping in at random. It allows the Webmaster to specify an exact match or wildcard expression to match the Referer: HTTP header. Refer to the OnDeny directive as a way to send the browser to the correct entry point.

Note  There is nothing to prevent a user from accessing the directory if they are able to modify the Referer: header that is sent with their browser.

Scope

You can use this directive only within Limit sections.

Syntax

The Referer is a prefix to the standard Allow and Deny directives.

referer deny from URL

referer allow from URL

URL is a wildcard expression that specifies a URL.

Filename

access.cfg

Default

The default is to allow all Referer fields.

Example

The following example limits users to entering this directory through the /test/ URLs. The * allows any port number or any directory beyond /test/. The OnDeny directive sends the browser to http://my.server.com/test/.

<Limit GET POST>

order deny,allow

deny from all

referer allow from http://my.server.com:*/test/*

OnDeny http://my.server.com/test/

</Limit>


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit