最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

如何判斷URL格式是否符合規(guī)范?

 更新時(shí)間:2006年11月16日 00:00:00   作者:  
<%
 function checkisUrl(tmpString)

      dim c,i
      checkisUrl = true
      tmpString=Lcase(trim(tmpString))
      if left(tmpString,7)<>"http://" then tmpString="http://"&tmpString
      for i = 8 to Len(checkisUrl)
            c = Lcase(Mid(tmpString, i, 1))
            if InStr("abcdefghijklmnopqrstuvwxyz_-./\", c) <= 0 and not IsNumeric(c) then
                  checkisUrl = false
                  exit function
            end if
      next
      if Left(tmpString, 1) = "." or Right(tmpString, 1) = "." then
            checkisUrl = false
            exit function
      end if
      if InStr(tmpString, ".") <= 0 then
            checkisUrl = false
            response.Write "f3"
            exit function
      end if
      if InStr(checkisUrl, "..") > 0 then
            checkisUrl = false
      end if

end function
%>
<%

if checkisUrl(request("u"))=true then
      %>
恭喜,你的URL通過!
<%
else
      %>
對(duì)不起,你的URL不合乎規(guī)范,請(qǐng)重新檢查!
<%end if%>

[1]

相關(guān)文章

最新評(píng)論

监利县| 遂溪县| 汉沽区| 休宁县| 睢宁县| 盐源县| 霍州市| 阳西县| 陵水| 驻马店市| 乐安县| 广平县| 瑞金市| 岳阳县| 江孜县| 武山县| 桐乡市| 岱山县| 隆安县| 金溪县| 西乌珠穆沁旗| 望城县| 黄石市| 昌乐县| 寻乌县| 通州市| 淮安市| 康马县| 汝州市| 友谊县| 黑龙江省| 大名县| 邵阳县| 太和县| 盐边县| 灵丘县| 吉安县| 泰和县| 晋中市| 桐庐县| 修文县|