亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? functions_filters.asp

?? 快速、可設定管理權限等級的論壇程序
?? ASP
?? 第 1 頁 / 共 3 頁
字號:
<%
'****************************************************************************************
'**  Copyright Notice
'**
'**  Web Wiz Guide - Web Wiz Forums
'**
'**  Copyright 2001-2005 Bruce Corkhill All Rights Reserved.
'**
'**  This program is free software; you can modify (at your own risk) any part of it
'**  under the terms of the License that accompanies this software and use it both
'**  privately and commercially.
'**
'**  All copyright notices must remain in tacked in the scripts and the
'**  outputted HTML.
'**
'**  You may use parts of this program in your own private work, but you may NOT
'**  redistribute, repackage, or sell the whole or any part of this program even
'**  if it is modified or reverse engineered in whole or in part without express
'**  permission from the author.
'**
'**  You may not pass the whole or any part of this application off as your own work.
'**
'**  All links to Web Wiz Guide and powered by logo's must remain unchanged and in place
'**  and must remain visible when the pages are viewed unless permission is first granted
'**  by the copyright holder.
'**
'**  This program is distributed in the hope that it will be useful,
'**  but WITHOUT ANY WARRANTY; without even the implied warranty of
'**  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER
'**  WARRANTIES WHETHER EXPRESSED OR IMPLIED.
'**
'**  You should have received a copy of the License along with this program;
'**  if not, write to:- Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom.
'**
'**
'**  No official support is available for this program but you may post support questions at: -
'**  http://www.webwizguide.info/forum
'**
'**  Support questions are NOT answered by e-mail ever!
'**
'**  For correspondence or non support questions contact: -
'**  info@webwizguide.info
'**
'**  or at: -
'**
'**  Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom
'**
'****************************************************************************************



'**********************************************
'***  Check HTML input for malicious code *****
'**********************************************

'Check images function
Private Function checkHTML(ByVal strMessageInput)

	Dim strTempHTMLMessage		'Temporary message store
	Dim lngMessagePosition		'Holds the message position
	Dim intHTMLTagLength		'Holds the length of the HTML tags
	Dim strHTMLMessage		'Holds the HTML message
	Dim strTempMessageInput		'Temp store for the message input
	Dim lngLoopCounter		'Loop counter
	
	'Include the array of disallowed HTML tags
	%><!--#include file="disllowed_HTML_tags_inc.asp" --><%
	
	
	'Strip scripting
	strMessageInput = Replace(strMessageInput, "<script language=""javascript"">", "", 1, -1, 1)
	strMessageInput = Replace(strMessageInput, "<script language=javascript>", "", 1, -1, 1)
	strMessageInput = Replace(strMessageInput, "<script language=""vbscript"">", "", 1, -1, 1)
	strMessageInput = Replace(strMessageInput, "<script language=vbscript>", "", 1, -1, 1)
	strMessageInput = Replace(strMessageInput, "</script>", "", 1, -1, 1)


	'Place the message input into a temp store
	strTempMessageInput = strMessageInput

	'Loop through each character in the post message
	For lngMessagePosition = 1 to CLng(Len(strMessageInput))

		'If this is the end of the message then save some process time and jump out the loop
		If Mid(strMessageInput, lngMessagePosition, 1) = "" Then Exit For
		
		'If an HTML tag is found then move to the end of it so that we can strip the HTML tag and check it for malicious code
		If Mid(strMessageInput, lngMessagePosition, 1) = "<" Then

			'Get the length of the HTML tag
			intHTMLTagLength = (InStr(lngMessagePosition, strMessageInput, ">", 1) - lngMessagePosition)

			'Place the HTML tag back into the temporary message store
			strHTMLMessage = Mid(strMessageInput, lngMessagePosition, intHTMLTagLength + 1)

			'Place the HTML tag into a temporay variable store to be stripped of malcious code
			strTempHTMLMessage = strHTMLMessage


			'***** Filter Hyperlinks *****
			
			'If this is an hyperlink tag then check it for malicious code
			If InStr(1, strTempHTMLMessage, "href", 1) <> 0 Then

				'Turn < and > into forum codes so they aren't stripped when checking links
				strTempHTMLMessage = Replace(strTempHTMLMessage, "<", "**/**", 1, -1, 1)
				strTempHTMLMessage = Replace(strTempHTMLMessage, ">", "**\**", 1, -1, 1)

				'Call the format link function to strip malicious codes
				strTempHTMLMessage = formatLink(strTempHTMLMessage)

				'Turn **/** and **\** back from forum codes
				strTempHTMLMessage = Replace(strTempHTMLMessage, "**/**", "<", 1, -1, 1)
				strTempHTMLMessage = Replace(strTempHTMLMessage, "**\**", ">", 1, -1, 1)

				'Format link tag
				strTempHTMLMessage = Replace(strTempHTMLMessage, ">", " target=""_blank"">", 1, -1, 1)

			End If


			'***** Filter Image Tags *****

			'If this is an Image tag then check it for malicious code
			If InStr(1, strTempHTMLMessage, "img", 1) <> 0 AND InStr(1, strTempHTMLMessage, "src", 1) <> 0 Then

				'Turn < and > into forum codes so they aren't stripped when checking links
				strTempHTMLMessage = Replace(strTempHTMLMessage, "<", "**/**", 1, -1, 1)
				strTempHTMLMessage = Replace(strTempHTMLMessage, ">", "**\**", 1, -1, 1)

				'Call the check images function to strip malicious codes
				strTempHTMLMessage = checkImages(strTempHTMLMessage)

				'Turn **/** and **\** back from forum codes
				strTempHTMLMessage = Replace(strTempHTMLMessage, "**/**", "<", 1, -1, 1)
				strTempHTMLMessage = Replace(strTempHTMLMessage, "**\**", ">", 1, -1, 1)

				'Format image tag
				strTempHTMLMessage = Replace(strTempHTMLMessage, ">", " border=""0"">", 1, -1, 1)
				
			End If


			'***** Filter Unwanted HTML Tags *****

			'If this is not an image or a link then cut all unwanted HTML out of the HTML tag
			If InStr(1, strTempHTMLMessage, "href", 1) = 0 AND InStr(1, strTempHTMLMessage, "img", 1) = 0 Then

				'Loop through the array of disallowed HTML tags
				For lngLoopCounter = LBound(saryHTMLtags) To UBound(saryHTMLtags)
					strTempHTMLMessage = Replace(strTempHTMLMessage, saryHTMLtags(lngLoopCounter), "", 1, -1, 1)
				Next
			End If



			'***** Format Unwanted HTML Tags *****
			
			'Strip out malicious code from the HTML that may have not been stripped but trying to sneak through in a hyperlink or image src
			strTempHTMLMessage = formatInput(strTempHTMLMessage)


			'Place the new fromatted HTML tag back into the message post
			strTempMessageInput = Replace(strTempMessageInput, strHTMLMessage, strTempHTMLMessage, 1, -1, 1)
			
		End If
	Next

	'Return the function
	checkHTML = strTempMessageInput
End Function





'******************************************
'***  Check Images for malicious code *****
'******************************************

'Check images function
Private Function checkImages(ByVal strInputEntry)

	Dim strImageFileExtension	'Holds the file extension of the image
	Dim saryImageTypes		'Array holding allowed image types in the forum
	Dim intExtensionLoopCounter	'Holds the loop counter for the array
	Dim blnImageExtOK		'Set to true if the image extension is OK

	'If there is no . in the link then there is no extenison and so can't be an image
	If inStr(1, strInputEntry, ".", 1) = 0 Then

		strInputEntry = ""

	'Else remove malicious code and check the extension is an image extension
	Else

		'Initiliase variables
		blnImageExtOK = false
		
		'Get the file extension
		strImageFileExtension = LCase(Mid(strInputEntry, InStrRev(strInputEntry, "."), 4))

		'Get the image types allowed in the forum
		strImageTypes = strImageTypes & ";gif;jpg;jpe;bmp;png"
		
		'Place the image types into an array
		saryImageTypes = Split(Trim(strImageTypes), ";")
		
		'Loop through all the allowed extensions and see if the image has one
		For intExtensionLoopCounter = 0 To UBound(saryImageTypes)
		
			'Reformat extension to check
			saryImageTypes(intExtensionLoopCounter) = "." & Trim(Mid(saryImageTypes(intExtensionLoopCounter), 1, 3))
			
			'Check to see if the image extension is allowed
			If saryImageTypes(intExtensionLoopCounter) = strImageFileExtension Then blnImageExtOK = true	
		Next
		
		'If the image extension is not OK then strip it from the image link
		If blnImageExtOK = false Then strInputEntry = Replace(strInputEntry, strImageFileExtension, "", 1, -1, 1)

		'Call the format link function to strip malicious codes
		strInputEntry = formatLink(strInputEntry)


		'Chop out any querystring question marks that maybe in the image link
		strInputEntry = Replace(strInputEntry, "?", "", 1, -1, 1)
	End If

	'Return
	checkImages = strInputEntry
End Function





'********************************************
'*** 		 Format Links 		*****
'********************************************

'Format links funtion
Private Function formatLink(ByVal strInputEntry)

	'Remove malisous charcters from links and images
	strInputEntry = Replace(strInputEntry, "document.cookie", ".", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "javascript:", "javascript ", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "vbscript:", "vbscript ", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "javascript :", "javascript ", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "vbscript :", "vbscript ", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "[", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "]", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "(", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, ")", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "{", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "}", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "<", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, ">", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "|", "", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "script", "&#115;cript", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "object", "&#111;bject", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "applet", "&#097;pplet", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "embed", "&#101;mbed", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "document", "&#100;ocument", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "cookie", "&#099;ookie", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "event", "&#101;vent", 1, -1, 1)
	strInputEntry = Replace(strInputEntry, "on", "&#111;n", 1, -1, 1)

	'Return
	formatLink = strInputEntry
End Function



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区毛片| 欧美日韩视频专区在线播放| thepron国产精品| 精品视频在线免费观看| 国产欧美久久久精品影院| 亚洲小少妇裸体bbw| 国产成人精品一区二| 欧美精品日韩精品| 亚洲另类春色国产| 成人免费看的视频| 欧美精品一区二区三区视频| 午夜精品免费在线观看| 91亚洲国产成人精品一区二三| 精品久久久久一区二区国产| 亚洲福利一区二区三区| 色综合天天视频在线观看| 国产三级欧美三级| 捆绑调教美女网站视频一区| 欧美日韩国产综合一区二区 | 一本一道久久a久久精品综合蜜臀| 日韩精品自拍偷拍| 日韩国产欧美一区二区三区| 欧美性极品少妇| 亚洲欧美一区二区三区国产精品 | 亚州成人在线电影| 在线日韩一区二区| 中文字幕一区二区三区在线观看 | 日韩精品欧美精品| 在线免费观看成人短视频| 亚洲欧美区自拍先锋| 成人av资源网站| 国产精品免费看片| 成年人午夜久久久| 中文字幕在线不卡视频| 成人在线视频一区| 国产精品久久久久久久裸模| 懂色av一区二区三区蜜臀| 中文一区二区在线观看 | 日韩精品一二三区| 91精品蜜臀在线一区尤物| 日av在线不卡| 精品欧美一区二区在线观看| 激情av综合网| 国产欧美精品区一区二区三区| 国产大陆精品国产| 国产精品久久国产精麻豆99网站| 97久久超碰精品国产| 亚洲精品乱码久久久久久| 欧美日韩专区在线| 亚洲超丰满肉感bbw| 日韩一区二区视频| 国产一区二区三区观看| 国产精品久久久久久久浪潮网站| 色一区在线观看| 香蕉影视欧美成人| 日韩欧美亚洲一区二区| 国产一区二区久久| 综合欧美一区二区三区| 欧美日韩一二区| 激情久久五月天| 国产精品国产三级国产普通话三级 | 欧美精品自拍偷拍| 青青草97国产精品免费观看| 精品国产髙清在线看国产毛片| 国产精品白丝jk黑袜喷水| 亚洲欧美另类小说视频| 欧美一区二区三区系列电影| 国产一区二区在线免费观看| 成人欧美一区二区三区白人| 欧美三级在线播放| 国产精品996| 亚洲国产aⅴ成人精品无吗| 欧美tickling网站挠脚心| 91在线国内视频| 精品一区二区三区蜜桃| 一区二区视频在线| 337p日本欧洲亚洲大胆精品| 色偷偷一区二区三区| 久久不见久久见免费视频1| 亚洲欧美日韩久久| 精品奇米国产一区二区三区| 欧美午夜不卡视频| 成人av电影在线播放| 老司机精品视频在线| 一区二区三区在线免费观看| 久久尤物电影视频在线观看| 欧美中文字幕一二三区视频| 成人丝袜18视频在线观看| 奇米888四色在线精品| 亚洲精品综合在线| 中文字幕欧美国产| 精品国产露脸精彩对白| 欧美美女bb生活片| 9人人澡人人爽人人精品| 国内精品视频一区二区三区八戒| 亚洲高清视频在线| 亚洲欧美二区三区| 日本一区二区三区四区在线视频| 日韩亚洲欧美综合| 欧美在线免费播放| 91日韩一区二区三区| 成a人片国产精品| 国产黑丝在线一区二区三区| 久久国产精品99精品国产| 天天综合色天天| 亚洲成人tv网| 亚洲一二三级电影| 亚洲永久精品大片| 亚洲伦理在线免费看| 亚洲欧美另类在线| 亚洲精品久久久蜜桃| 一区二区在线观看不卡| 亚洲摸摸操操av| 亚洲人成网站在线| 亚洲欧美欧美一区二区三区| 亚洲免费电影在线| 亚洲免费av网站| 亚洲国产欧美在线人成| 亚洲成av人片在www色猫咪| 亚洲国产成人高清精品| 亚洲一区免费观看| 五月激情六月综合| 青青草原综合久久大伊人精品优势 | 国产精品伦理在线| 国产精品成人在线观看| 中文字幕字幕中文在线中不卡视频| 国产精品久久久久影视| 亚洲精品国产a| 丝袜美腿亚洲色图| 久久国产福利国产秒拍| 国产成人精品免费网站| 丁香六月久久综合狠狠色| 99精品视频中文字幕| 在线视频一区二区三区| 欧美性猛片xxxx免费看久爱| 欧美精品日韩综合在线| 日韩精品一区二区三区swag| 国产喂奶挤奶一区二区三区| 亚洲色欲色欲www| 亚洲成av人片www| 国产一区二区三区在线观看免费视频| 国产成人综合在线观看| 日本韩国欧美一区二区三区| 欧美日韩国产高清一区二区| 精品国产乱码久久久久久久| 1区2区3区精品视频| 日韩中文字幕91| 国产成人av一区二区三区在线观看| 91免费观看视频在线| 欧美肥大bbwbbw高潮| 久久综合久久99| 亚洲美女在线国产| 国模一区二区三区白浆| 99精品久久只有精品| 91精品国产综合久久久久久久| 久久久精品影视| 亚洲国产一二三| 粉嫩av一区二区三区在线播放| 欧美视频一区二区三区四区| 久久久久久电影| 丝袜美腿一区二区三区| 国产99久久久精品| 欧美一区二区三区在线观看视频| 国产精品私房写真福利视频| 日韩国产欧美在线观看| 91香蕉视频mp4| 精品久久免费看| 亚洲18色成人| 91在线高清观看| 久久综合九色欧美综合狠狠| 亚洲综合视频在线观看| 国产不卡视频一区二区三区| 欧美一区二区在线免费观看| 中文字幕亚洲区| 久久国产精品第一页| 欧美三级三级三级爽爽爽| 亚洲欧洲精品一区二区精品久久久| 另类小说一区二区三区| 欧美少妇一区二区| 一区精品在线播放| 国产成人自拍网| 日韩美一区二区三区| 偷偷要91色婷婷| 在线观看日韩精品| 中文字幕一区不卡| 国产激情一区二区三区| 精品成a人在线观看| 亚洲成人激情综合网| 99久久精品国产一区| 国产精品久久久久婷婷| 国产乱子轮精品视频| 欧美精品一区在线观看| 美女视频一区二区| 日韩欧美精品在线视频| 日本欧美在线观看| 欧美剧情电影在线观看完整版免费励志电影 | 欧美精品v日韩精品v韩国精品v| 亚洲人精品一区| 一本久道久久综合中文字幕| 亚洲欧美一区二区三区极速播放|