ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์Programmingเสริมความปลอดภัยให้ form ป้องกัน csrf/xss (php)
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: เสริมความปลอดภัยให้ form ป้องกัน csrf/xss (php)  (อ่าน 746 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
vii
Verified Seller
สมุนแก๊งเสียว
*

พลังน้ำใจ: 132
ออฟไลน์ ออฟไลน์

กระทู้: 986



ดูรายละเอียด เว็บไซต์
« เมื่อ: 08 มีนาคม 2011, 21:19:10 »

download class vee secured form ได้ที่นี่ครับ

เวลาใช้งานก็...
<?php 
require_once("veesf.php");
$vsf = new veesf();
?>
<!doctype html>
<html>
	
<head>
	
	
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	
	
<title>test Vee form secured</title>
	
	
<style type="text/css" media="all">
	
	
	
.hrmajor {border: none; border-top: 3px solid #ccc; margin: 20px 0 20px 0;}
	
	
	
.hrminor {border: none; border-top: 2px dashed #efefef;}
	
	
</style>
	
</head>
	
<body>
	
	
<h1>ทดสอบ Vee secured form</h1>
	
	
<h3>ทดสอบ xss</h3>
	
	
input xss test result:<br />
	
	
<?php echo $vsf->input_post("xss"true); ?><br />
	
	
<textarea name="null" cols="50" rows="7"><?php echo $vsf->input_post("xss"true); ?></textarea><br />
	
	
<hr class="hrminor" />
	
	
<?php echo $vsf->form_open("test.php"); ?>
	
	
	
xss test: <br /><textarea name="xss" cols="50" rows="7"><?php echo $vsf->input_post("xss"); ?></textarea><br />
	
	
	
<input type="submit" value="send" />
	
	
<?php echo $vsf->form_close(); ?>
	
</body>
</html>


ดูเนื้อหาและ property/method อ้างอิงได้ที่ link นี้นะครับ http://www.okvee.net/2011/03/0...red-form-and-prevent-csrf-xss/
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์