ASP PICS 屬性
PICS 屬性可向響應(yīng)頭部的 PICS 標(biāo)記追加值。
注釋:此屬性可接受任何字符串值,無(wú)論是否是合法的 PICS 標(biāo)記。
什么是 PICS ?
PICS (Platform for Internet Content Selection) 分級(jí)系統(tǒng)用于對(duì)網(wǎng)站內(nèi)的內(nèi)容進(jìn)行分級(jí)。它看起來(lái)類似這樣:
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 版本號(hào) |
"http://www.rsac.org/ratingsv01.html" | 分級(jí)機(jī)構(gòu) |
by "your@name.com" | 標(biāo)記的作者 |
for "http://www.somesite.com" | 已被分級(jí)的文檔的 URL |
on "2002.10.05T02:15-0800" | 失效日期 |
r (n 0 s 0 v 0 l 0) | 等級(jí) |
最流行的分級(jí)系統(tǒng)之一是 RSACi (Recreational Software Advisory Council on the Internet) 。RSACi 使用四種類型:violence(暴力)、nudity(裸體)、 sex(性)以及l(fā)anguage(不雅言論)。數(shù)字從 0 到 4分別分配給了這四種類型。0 表示頁(yè)面不包含任何攻擊性的內(nèi)容,4 表示潛在攻擊性內(nèi)容的最高級(jí)別。
級(jí)別 | 暴力分級(jí) | 裸體分級(jí) | 性分級(jí) | 言論分級(jí) |
---|---|---|---|---|
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 |
您有兩種方式為您的網(wǎng)站獲得評(píng)級(jí)。您可以自己為網(wǎng)站評(píng)級(jí),或者利用一個(gè)評(píng)級(jí)提供者,比如 RSACi 。他們會(huì)要求您填寫(xiě)一些問(wèn)題。在填寫(xiě)完成后,您會(huì)得到用于您的網(wǎng)站的分級(jí)標(biāo)記。
Microsoft IE 3.0 及更高的版本和 Netscape 4.5 及更高的版本均支持內(nèi)容分級(jí)。您可以在 IE 5 中設(shè)置分級(jí),選擇工具菜單中的 Internet 選項(xiàng)。選擇內(nèi)容選項(xiàng)卡,然后單擊啟用。當(dāng)?shù)燃?jí)超過(guò)了所定義的級(jí)別,內(nèi)容顧問(wèn)就會(huì)阻止此網(wǎng)站。
我們可以使用 META 標(biāo)簽或者 response.PICS 屬性為網(wǎng)站添加分級(jí)。
語(yǔ)法
response.PICS(picslabel)
參數(shù) | 描述 |
---|---|
picslabel | A properly formatted PICS label |
實(shí)例
ASP 文件包含以下代碼:
注釋:由于 PICS 標(biāo)記含有引號(hào),您必須把引號(hào)替換為" & 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))