Trang Chủ | Diễn Đàn | Thành Viên (Đăng Ký) | Tìm Kiếm | Tutorial Room
HTML & JavaScript - 1 Cách Bảo Vệ source Html !
First page Previous page  (Page 1 )   1   Next page Last page
1 Cách Bảo Vệ source Html !
Member
Member since
19:40 22-08-2001
Posts: 1,393
Fantasy Points: 25,173
Rank
article Posted at 02:21 10-12-2002 Move Move Topic   Pin/Unpin Pin Topic   Lock Lock Topic
Đã Có nhiều bạn hỏi : có cách nào bảo vệ các Script (javascript, .. ) độc chiêu , không cho người khác chôm ?

mã hoá và nén các đoạn script là 1 trong những giãi pháp tạm thời , ngăn chặn được tình trạng người khác thó các đoạn script cưng khi mà người đó vào thăm site của mình .

trước nổi bức xức đó mà Chương Trình mã hoá và nén Html + script (client +server) . đã được hình thành ! 

http://www.longbinh.com.vn/download/ mahoahtml.zip

ví dụ :

source gốc :

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>New Page 1</title>
</head>
<body>
<script language="javaScript">
alert("chào các bạn");
</script>
<p>hiện hộp thoại thông báo</p>
</body>
</html>

đã qua mã hoá và nén lại

<script>
<!--
document.write(unescape("%3Chtml%3E%0D%0A%3Chead%3E%0D%0A%3Cmeta%20http%2Dequiv%3D%22Content%2DLanguage%22%20content%3D%22en%2Dus%22%3E%0D%0A%3Cmeta%20name%3D%22GENERATOR%22%20content%3D%22Microsoft%20FrontPage%205%2E0%22%3E%0D%0A%3Cmeta%20name%3D%22ProgId%22%20content%3D%22FrontPage%2EEditor%2EDocument%22%3E%0D%0A%3Cmeta%20http%2Dequiv%3D%22Content%2DType%22%20content%3D%22text/html%3B%20charset%3Dutf%2D8%22%3E%0D%0A%3Ctitle%3ENew%20Page%201%3C/title%3E%0D%0A%3C/head%3E%0D%0A%3Cbody%3E%0D%0A%3Cscript%20language%3D%22javaScript%22%3E%0D%0A%20alert%28%22ch%E0o%20c%E1c%20b%u1EA1n%22%29%3B%20%0D%0A%3C/script%3E%0D%0A%3Cp%3Ehi%u1EC7n%20h%u1ED9p%20tho%u1EA1i%20th%F4ng%20b%E1o%3C/p%3E%0D%0A%3C/body%3E%0D%0A%3C/html%3E"));
//-->
</script>

-> copy đè lên source gốc vẩn chạy bình thường .

Source + pro (chính thức ) sẽ load lên Sharelib .

http://www.diendantinho...confirm/64/mahoahtml.zip
Say men rượu ngày mai sẽ tỉnh
Say men tình muôn thuở vẩn còn Say
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 7,950 time(s). 3 direct repli(es) and 2 indirect repli(es).
Title Poster
article 1 Cách Bảo Vệ source Html !
 
answer Cach pha Bảo Vệ source Html !
ixx
answer Re: 1 Cách Bảo Vệ source Html !
thaidn
answer Re: 1 Cách Bảo Vệ source Html !
test
Cach pha Bảo Vệ source Html !
Member
Member since
12:17 19-11-2002
Posts: 509
Fantasy Points: 9,013
Rank
answer Posted at 07:07 10-12-2002
Reply to 1 Cách Bảo Vệ source Html ! (Girl_next_door)
Thuc ra cach lam nay chi la ma hoa URL va ma hoa HTML neu dung ASP thi cac ban co the doc mot cach ngon o bang Phuong thuc Server.HTMLEncode , Server.URLEncode , Con neu dung bat cu chuong trinh lam Web nao ban chi can dung lenh Replace voi cac kit u la chang co ma hoa gi ca .
<%Response.Write(Server.URLEncode("Something")) %>
Voi cac cach chuyen doi nay ban co the go vao thanh Address thay the choc cac dau sau HTTP,


ASCII                           Hex
[Return]                       %0D
[Space]                         %20
[-]                                 %2D
Quot [“]                        %22
Plus [+]                         %2B
Period[.]                        %2E
Forward slash [/]         %2F
Colon [:]                       %3A
Less than [<]                 %3C
Equal  [=]                     %3D
Greater than [>]             %3E
Question Mark [?]         %3F
Back Slash [\]                %5C
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 1,934 time(s). 1 direct repli(es) and 1 indirect repli(es).
Title Poster
answer Cach pha Bảo Vệ source Html !
 
warning Re: Cach pha Bảo Vệ source Html !
canh
Re: Cach pha Bảo Vệ source Html !
Member
Member since
02:32 01-12-2001
Posts: 295
Fantasy Points: 5,591
Rank
warning Posted at 03:33 11-12-2002
Reply to Cach pha Bảo Vệ source Html ! (ixx)
Cần gì đao to búa lớn như thế !
Thay  "document.write"  thành "alert" là thấy hết:

<HTML>
<HEAD><TITLE></TITLE></HEAD>
<BODY>
<script>
<!--
alert(unescape("%3Chtml%3E%0D%0A%3Chead%3E%0D%0A%3Cmeta%20http%2Dequiv%3D%22Content%2DLanguage%22%20content%3D%22en%2Dus%22%3E%0D%0A%3Cmeta%20name%3D%22GENERATOR%22%20content%3D%22Microsoft%20FrontPage%205%2E0%22%3E%0D%0A%3Cmeta%20name%3D%22ProgId%22%20content%3D%22FrontPage%2EEditor%2EDocument%22%3E%0D%0A%3Cmeta%20http%2Dequiv%3D%22Content%2DType%22%20content%3D%22text/html%3B%20charset%3Dutf%2D8%22%3E%0D%0A%3Ctitle%3ENew%20Page%201%3C/title%3E%0D%0A%3C/head%3E%0D%0A%3Cbody%3E%0D%0A%3Cscript%20language%3D%22javaScript%22%3E%0D%0A%20alert%28%22ch%E0o%20c%E1c%20b%u1EA1n%22%29%3B%20%0D%0A%3C/script%3E%0D%0A%3Cp%3Ehi%u1EC7n%20h%u1ED9p%20tho%u1EA1i%20th%F4ng%20b%E1o%3C/p%3E%0D%0A%3C/body%3E%0D%0A%3C/html%3E"));
//-->
</script>
</BODY>
</HTML>
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 1,685 time(s). 1 direct repli(es) and 0 indirect repli(es).
Title Poster
warning Re: Cach pha Bảo Vệ source Html !
 
answer Re: Cach pha Bảo Vệ source Html !
NBThanh
Re: Cach pha Bảo Vệ source Html !
Forum Moderator
Member since
20:03 17-08-2001
Posts: 18,130
Fantasy Points: 154,908
Rank
answer Posted at 03:44 11-12-2002
Reply to Re: Cach pha Bảo Vệ source Html ! (canh)
Hì hì, bác Cảnh vui tính quá :-) alert rồi làm sao mà...copy & paste để..."chôm" đây! Nếu không cần "chôm" thì...để nguyên đó, cần gì decode cho mệt!

Thân,
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 1,666 time(s). 0 direct repli(es) and 0 indirect repli(es).
Re: 1 Cách Bảo Vệ source Html !
Member
Member since
08:19 21-08-2001
Posts: 196
Fantasy Points: 3,933
Rank
answer Posted at 23:20 12-12-2002
Reply to 1 Cách Bảo Vệ source Html ! (Girl_next_door)
trời ạh, sao lại đi làm một cái chuyện vô ích đến thế nhỉ ?
nếu muốn người khác không coi source HTML theo tôi thì chỉ có cách...offline, rút cable ra, chấm hết :D.
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 1,729 time(s). 0 direct repli(es) and 0 indirect repli(es).
Re: 1 Cách Bảo Vệ source Html !
Member
Member since
01:13 12-12-2001
Posts: 5
Fantasy Points: 59
answer Posted at 08:40 23-09-2005
Reply to 1 Cách Bảo Vệ source Html ! (Girl_next_door)
Link die ...Pls update link ??
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 1,563 time(s). 0 direct repli(es) and 0 indirect repli(es).
First page Previous page  (Page 1 )   1   Next page Last page

Permissions: Create Topic: No  |  Reply Topic: No  |  Attach File: No  |  Make Poll: No

Vietnamese Keyboard: AUTO TELEX VNI VIQR VIQR* OFF

Go top || Print page ||

All logos, trademarks and graphics artwork in this site are property of their respective owners.
Opinions expressed in articles within this site are those of their owners and may not reflect the opinion of TXBB.

TXBB: Home - Disclaimer - Help - Contact
Copyright (C) 2000-2006 TXBB. All rights reserved.

TreXanh Bulletin Board v2.0 (Build: #332 Nov 21, 2006)

DEBUG INFORMATION
Execution 0.336s - SQL used 6s - Concurrent process(es) 0