UCSB Web sites that collect personal information from visitors must contain a formal privacy notification statement, and Web sites that collect general information are also encouraged to do so. For details of the guidelines governing privacy notification, including a definition of "personal information," see the UCSB Advisory on Privacy Notification.
The WSG recommends that all UCSB Web sites that collect information from visitors
link to the Privacy Notification Statement developed and maintained by
the Office of the Vice Chancellor, Administrative Services.
- Sites collecting personal information must display a statement (or a link to a statement) prominently on the page on which the information is requested, and it should be accessible to the individual to read prior to volunteering information about him/herself. The icon or link should contain the word "privacy."
- Sites collecting only general information may display the link on the footer of the site
home page. The link should contain the word "privacy."
1. Link directly to the Privacy Notification Statement
To link directly to the official Privacy Notification Statement, add the following anchor tag to your HTML source code.
2. Add the source document to your Web page using PHP,
Since the content is separate from the design, "including" the
source document's content in your Web page allows you to customize
its look and feel. The following examples show how to "include" the
source document using PHP, Perl, ASP, and .NET.
Perl, ASP, and .NET
2a. Sample use of PHP code to "include" a document
in your Web site.
You can use the following code sample using PHP
to include the source document into your Web page.
2b. Sample use of Perl code to "include" document
into your Web site.
You can use the following code sample using Perl
to "include" the source document into your Web page.
- Set the Library for WWW in Perl (LWP) to use the 'Simple'
- Store the data you want to scrape in a scalar variable
which holds both strings and numbers interchangeably.
- Call the get or getprint function to display the URL
- Use an "include" with the perl script and paste
it into the body portion of your HTML. This is one of several
methods of displaying the document with Perl.
## store remote page in scalar variable
## or just get and print
<!--#include virtual="/cgi-restricted/privacy-notification.pl" -->
2c. Sample use of Classic ASP code to "include" document
into your Web site.
Classic ASP on IIS 4.0 and 5.0 does not allow
you to do includes from a remote Web server in the same way PHP
does. To do a "screen scrape" with classic ASP, you
need to use a third-party component that does the necessary HTTP
spoofing, like SoftWing's free AspTear
Once you download and install AspTear, you
include code in your ASP page to do the following:
- Set AspTear constants and create the AspTear object.
- Call the Retrieve method, passing in the URL whose data
you want to scrape, the action, and optional parameters.
- Write out the string that the method returns.
Const Request_POST = 1
Const Request_GET = 2
Set objTear = CreateObject("SOFTWING.ASPtear")
Response.ContentType = "text/html"
On Error Resume Next
' Parameters: URL, action, payload, username, password
strRetval = objTear.Retrieve("http://www.policy.ucsb.edu/privacy-notification/content.html",
Request_GET, "", "", "")
' Error checking
If Err.Number <> 0 Then
If Err.Number >= 400
returned error: " & Err.Number
error: " & Err.Description
2d. Sample use of ASP.Net code to "include" document
into your Web site.
With ASP.Net, unlike classic ASP, you do not
need to use a separate component to perform a screen scrape.
Instead you can use the System.Net namespace's WebClient class to do the
- Create an instance of the WebClient class.
- Call the DownloadData method, passing in the URL whose
data you want to scrape. A Byte array will be returned.
- Convert the Byte array to a string.
*Note: If your Web server is behind a proxy,
the WebClient class won't work; instead, you will need to use
the HttpWebRequest class.
Import Namespace="System.Net" %>
<script language="VB" runat="server">
Sub Page_Load(sender as Object,
e as EventArgs)
a WebClient instance
objWebClient as New WebClient()
string constant to URL you want to scrape
strURL as String = "http://www.policy.ucsb.edu/privacy-notification/content.html"
a UTF8Encoding instance for byte to string conversion
objUTF8 as New UTF8Encoding()
the DownloadData method and convert byte array to string
<h3>Screen Scrape of
<asp:label id="lblHTMLOutput" runat="server" />
3. Customized Privacy Notification Statement
If your organization needs to modify the Privacy Notification Statement
for a specific purpose, you should submit the modified version
for approval to email@example.com
If the Coordinator approves the modified content, the updated
version can be used and a copy will be retained by Administrative