ASP PICS 屬性
response 對象參考手冊PICS 屬性可向響應頭部的 PICS 標記追加值。
注釋:此屬性可接受任何字符串值,無論是否是合法的 PICS 標記。
什么是 PICS ?
PICS (Platform for Internet Content Selection) 分級系統用于對網站內的內容進行分級。它看起來類似這樣:
PICS-1.1 "http://www.rsac.org/ratingsv01.html" by "your@name.com" for "http://www.somesite.com" on "2002.10.05T02:15-0800" r (n 0 s 0 v 0 l 0)
部分 | 描述 |
---|---|
PICS-1.1 | PICS 版本號 |
"http://www.rsac.org/ratingsv01.html" | 分級機構 |
by "your@name.com" | 標記的作者 |
for "http://www.somesite.com" | 已被分級的文檔的 URL |
on "2002.10.05T02:15-0800" | 失效日期 |
r (n 0 s 0 v 0 l 0) | 等級 |
最流行的分級系統之一是 RSACi (Recreational Software Advisory Council on the Internet) 。RSACi 使用四種類型:violence(暴力)、nudity(裸體)、 sex(性)以及language(不雅言論)。數字從 0 到 4分別分配給了這四種類型。0 表示頁面不包含任何攻擊性的內容,4 表示潛在攻擊性內容的最高級別。
級別 | 暴力分級 | 裸體分級 | 性分級 | 言論分級 |
---|---|---|---|---|
0 | None of the below or sports related | None of the below | None of the below or innocent kissing; romance | None of the below |
1 | Injury to human being | Revealing attire | Passionate kissing | Mild expletives |
2 | Destruction of realistic objects | Partial nudity | Clothed sexual touching | Moderate expletives or profanity |
3 | Aggressive violence or death to humans | Frontal nudity | Non-explicit sexual acts | Strong language or hate speech |
4 | Rape or wanton, gratuitous violence | Frontal nudity (qualifying as provocative display) | Explicit sexual acts or sex crimes | Crude, vulgar language or extreme hate speech |
您有兩種方式為您的網站獲得評級。您可以自己為網站評級,或者利用一個評級提供者,比如 RSACi 。他們會要求您填寫一些問題。在填寫完成后,您會得到用于您的網站的分級標記。
Microsoft IE 3.0 及更高的版本和 Netscape 4.5 及更高的版本均支持內容分級。您可以在 IE 5 中設置分級,選擇工具菜單中的 Internet 選項。選擇內容選項卡,然后單擊啟用。當等級超過了所定義的級別,內容顧問就會阻止此網站。
我們可以使用 META 標簽或者 response.PICS 屬性為網站添加分級。
語法
response.PICS(picslabel)
參數 | 描述 |
---|---|
picslabel | A properly formatted PICS label |
實例
ASP 文件包含以下代碼:
注釋:由于 PICS 標記含有引號,您必須把引號替換為" & chr(34) & "
<% response.PICS("(PICS-1.1 <http://www.rsac.org/ratingv01.html> by " & chr(34) & "your@name.com" & chr(34) & " for " & chr(34) & "http://www.somesite.com" & chr(34) & " on " & chr(34) & "2002.10.05T02:15-0800" & chr(34) & " r (n 2 s 0 v 1 l 2))") %>
被添加的頭部:
PICS-label:(PICS-1.1 <http://www.rsac.org/ratingv01.html> by "your@name.com" for "http://www.somesite.com" on "2002.10.05T02:15-0800" r (n 2 s 0 v 1 l 2))response 對象參考手冊