ASP Pics 屬性
PICS 屬性可向響應頭部的PICS 標記追加值。
注意:此屬性可接受任何字符串值,無論是否是合法的PICS標記。
什麼是PICS ?
PICS(Platform for Internet Content Selection)分級系統用於對網站內的內容進行分級。 它看起來類似這樣:
PICS-1.1 "http://www.rsac.org/ratingsv01.html" by "[email protected]" 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 "[email protected]" | 标签的作者 |
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 選項。 選擇內容選項卡,然後單擊啟用。 當等級超過了所定義的級別,內容顧問就會阻止此網站。 在Netscape 4.7 中,您可以通過選擇Help 和NetWatch 來設置分級。
我們可以使用META 標籤或者response.PICS 屬性為網站添加分級。
語法
参数 | 描述 |
---|---|
picslabel | 格式正确的 PICS 标签。 |
實例
ASP 文件包含以下代碼:注意:由於PICS標籤含有引號,您必須把引號替換為" & chr(34) & ".
response.PICS("(PICS-1.1 <http://www.rsac.org/ratingv01.html>
by " & chr(34) & "[email protected]" & 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))")
%>
被添加的頭部:
by "[email protected]"
for "http://www.somesite.com"
on "2002.10.05T02:15-0800"
r (n 2 s 0 v 1 l 2))
完整的Response對象參考手冊