admin
05-18-2009, 03:50 PM
Cách cài "Tường lửa" cho các diễn đàn Vbulletin...bằng :
Firewall Protection Gateway Lite v0.4
Đây là phiên bản Lite của tường lửa trên forum mà Shacker đang dùng. Nó tương thích với hầu hết tất cả các loại forum và website (php) nên bên cạnh vBulletin, bạn có thể áp dụng nó cho nhiều hệ thống php khác nhau.
H́nh demo :
[Only registered and activated users can see links]
1 - Chuẩn bị :
Tải về bộ style và images của Firewall theo link dưới đây :
[Only registered and activated users can see links]
+ Sau khi tải xong,giải nén và upload lên đường dẫn chính của forum.
Ví dụ:
- [Only registered and activated users can see links]
hoặc :
- [Only registered and activated users can see links]
+ Tùy vào vị trí bạn cài đặt forum của ḿnh, của Shacker là :
[Only registered and activated users can see links]
Vậy là phần chuẩn bị đă hoàn tất.
2 - Cài đặt :
Mở tập tin global.php (file global.php nằm ở thư mục chính của forum) t́m:
<?php
Thêm vào sau đó đoạn mă sau :
session_start();
$URL_OF_FORUM = '[Only registered and activated users can see links]';
$TEN_COOKIE = 'dnp_firewall';
if ( strstr($[Only registered and activated users can see links]['[Only registered and activated users can see links]'] ,'Googlebot')||strstr($[Only registered and activated users can see links]['[Only registered and activated users can see links]'] ,'msnbot')||strstr($[Only registered and activated users can see links]['[Only registered and activated users can see links]'] ,'slurp'))
{}
else{
if( file_exists($firewall) ){ require_once($firewall);}
if((strpos($_SERVER['[Only registered and activated users can see links]'], $URL_OF_FORUM) !== 0) || (strpos($_SERVER['[Only registered and activated users can see links]'], $URL_OF_FORUM) !== 0) || (strpos($_SERVER['[Only registered and activated users can see links]'], $URL_OF_FORUM) !== 0) ) {
if (empty($[Only registered and activated users can see links]['{$TEN_COOKIE}']))
{
if (!empty($[Only registered and activated users can see links]['{$TEN_COOKIE}']))
{
session_register('{$TEN_COOKIE}');
$[Only registered and activated users can see links]['{$TEN_COOKIE}']='myforum_protection';
header("location: ".$_SERVER['REQUEST_URI']);
exit();
}
$sform='<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN [Only registered and activated users can see links]>
<html xmlns=[Only registered and activated users can see links]>
<head>
<**** **********=Content-Type content=text/html; charset=utf-8 />
<**** name="keywords" content="silvery hat hacker, delynie, ngoc diem, hack mod cho forum, invisionfree, phpbb2, vbb, vbulletin, ipb, web design, hack mod, modification, shacker, dnp, sh, mu bac" />
<**** name="description" content="Vietnamese American\'s Community, Website Development, Forum, Hack Mod, Shacker, Silvery Hat Hacker, DnP" />
<title>Protection Gate Lite v0.4 by Silvery Hat Hacker</title>
<link href=dnp_style.php rel=stylesheet type=text/css />
<script language=JavaScript><!--
//Anti-right click for all broswers by Shacker © 2006
//Redistributed for Vn communities by delynie.silveryhat.com
var message="";function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}else{document.onmouseup=click NS;document.onco
ntextmenu=clickIE;document.onselectstart=clickIE}d ocument.oncontextmenu=new Function("return false")
// -->
</script>
</head>
<body background="img/clean_orange_crystalxp_1600.jpg">
<table border=0 height=600 width=100%>
<tr><td align=center valign=middle>
<table width=468 class="table" align="center" border="0" cellpadding="0" cellspacing="0">
<tr><td height=25 width=35 class="tcat" colspan="0" align=center valign="middle"><img src="img/internet.gif"></td>
<td class="tcat" colspan="0" align=left width=318><STRONG>Forum Protection Gate Lite v0.4</STRONG></td>
<td class="tcat" colspan="0" align=center width=115>
</td></tr>
<tr><td colspan=3 height="25" id=Des align=center><strong style="color:#000066"> Press the button below to access to the forum</strong>
</td>
<tr><td colspan=3 align=center bgcolor=#F7F7F7 class="vienall" style=filter:Alpha(Opacity:90);cursor:default><img src="img/home.jpg" border=0 title="Firewall Layout Designed by Silvery Hat Hacker"/>
</td></tr>
<form name=sercform method=POST action='.$_SERVER['REQUEST_URI'].'>
<tr><td height=25 colspan=3 align=center class="tbottom">
<input type=submit value="Enter" size=6 style=cursor:pointer name=shfirewall class=button></td></tr></form>
</table></div></td></tr>
<tr><td align=right><a href="[Only registered and activated users can see links]" target=_blank>Silvery Hat Hacker</a> © 2007<BR>DnP Community</td></tr>
<tr><td align=right><a href="img/direction.jpg" target="_blank"><b>Can\'t access the forum because of Zone Alarm?</b></s></td></tr>
</table>
</body></html>
';
echo $sform;
exit();
}
}
}
Bạn lưu ư 2 biến ở đầu của đoạn mă trên :
$URL_OF_FORUM = '[Only registered and activated users can see links]';
$TEN_COOKIE = 'dnp_firewall';
Hăy thay đổi lại cho thích hợp với diễn đàn bạn.
Sau đó save và upload tập tin global.php lên host.
Xong xuôi !
Vậy là fForum bạn đă được bảo vệ bởi :
Firewall Protection Gateway Lite v0.4
Có thắc mắc ǵ hăy hỏi trong topic này, hoặc trang chính của nó ở đây :
[Only registered and activated users can see links]
Nguồn: ITVNN
Firewall Protection Gateway Lite v0.4
Đây là phiên bản Lite của tường lửa trên forum mà Shacker đang dùng. Nó tương thích với hầu hết tất cả các loại forum và website (php) nên bên cạnh vBulletin, bạn có thể áp dụng nó cho nhiều hệ thống php khác nhau.
H́nh demo :
[Only registered and activated users can see links]
1 - Chuẩn bị :
Tải về bộ style và images của Firewall theo link dưới đây :
[Only registered and activated users can see links]
+ Sau khi tải xong,giải nén và upload lên đường dẫn chính của forum.
Ví dụ:
- [Only registered and activated users can see links]
hoặc :
- [Only registered and activated users can see links]
+ Tùy vào vị trí bạn cài đặt forum của ḿnh, của Shacker là :
[Only registered and activated users can see links]
Vậy là phần chuẩn bị đă hoàn tất.
2 - Cài đặt :
Mở tập tin global.php (file global.php nằm ở thư mục chính của forum) t́m:
<?php
Thêm vào sau đó đoạn mă sau :
session_start();
$URL_OF_FORUM = '[Only registered and activated users can see links]';
$TEN_COOKIE = 'dnp_firewall';
if ( strstr($[Only registered and activated users can see links]['[Only registered and activated users can see links]'] ,'Googlebot')||strstr($[Only registered and activated users can see links]['[Only registered and activated users can see links]'] ,'msnbot')||strstr($[Only registered and activated users can see links]['[Only registered and activated users can see links]'] ,'slurp'))
{}
else{
if( file_exists($firewall) ){ require_once($firewall);}
if((strpos($_SERVER['[Only registered and activated users can see links]'], $URL_OF_FORUM) !== 0) || (strpos($_SERVER['[Only registered and activated users can see links]'], $URL_OF_FORUM) !== 0) || (strpos($_SERVER['[Only registered and activated users can see links]'], $URL_OF_FORUM) !== 0) ) {
if (empty($[Only registered and activated users can see links]['{$TEN_COOKIE}']))
{
if (!empty($[Only registered and activated users can see links]['{$TEN_COOKIE}']))
{
session_register('{$TEN_COOKIE}');
$[Only registered and activated users can see links]['{$TEN_COOKIE}']='myforum_protection';
header("location: ".$_SERVER['REQUEST_URI']);
exit();
}
$sform='<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN [Only registered and activated users can see links]>
<html xmlns=[Only registered and activated users can see links]>
<head>
<**** **********=Content-Type content=text/html; charset=utf-8 />
<**** name="keywords" content="silvery hat hacker, delynie, ngoc diem, hack mod cho forum, invisionfree, phpbb2, vbb, vbulletin, ipb, web design, hack mod, modification, shacker, dnp, sh, mu bac" />
<**** name="description" content="Vietnamese American\'s Community, Website Development, Forum, Hack Mod, Shacker, Silvery Hat Hacker, DnP" />
<title>Protection Gate Lite v0.4 by Silvery Hat Hacker</title>
<link href=dnp_style.php rel=stylesheet type=text/css />
<script language=JavaScript><!--
//Anti-right click for all broswers by Shacker © 2006
//Redistributed for Vn communities by delynie.silveryhat.com
var message="";function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}else{document.onmouseup=click NS;document.onco
ntextmenu=clickIE;document.onselectstart=clickIE}d ocument.oncontextmenu=new Function("return false")
// -->
</script>
</head>
<body background="img/clean_orange_crystalxp_1600.jpg">
<table border=0 height=600 width=100%>
<tr><td align=center valign=middle>
<table width=468 class="table" align="center" border="0" cellpadding="0" cellspacing="0">
<tr><td height=25 width=35 class="tcat" colspan="0" align=center valign="middle"><img src="img/internet.gif"></td>
<td class="tcat" colspan="0" align=left width=318><STRONG>Forum Protection Gate Lite v0.4</STRONG></td>
<td class="tcat" colspan="0" align=center width=115>
</td></tr>
<tr><td colspan=3 height="25" id=Des align=center><strong style="color:#000066"> Press the button below to access to the forum</strong>
</td>
<tr><td colspan=3 align=center bgcolor=#F7F7F7 class="vienall" style=filter:Alpha(Opacity:90);cursor:default><img src="img/home.jpg" border=0 title="Firewall Layout Designed by Silvery Hat Hacker"/>
</td></tr>
<form name=sercform method=POST action='.$_SERVER['REQUEST_URI'].'>
<tr><td height=25 colspan=3 align=center class="tbottom">
<input type=submit value="Enter" size=6 style=cursor:pointer name=shfirewall class=button></td></tr></form>
</table></div></td></tr>
<tr><td align=right><a href="[Only registered and activated users can see links]" target=_blank>Silvery Hat Hacker</a> © 2007<BR>DnP Community</td></tr>
<tr><td align=right><a href="img/direction.jpg" target="_blank"><b>Can\'t access the forum because of Zone Alarm?</b></s></td></tr>
</table>
</body></html>
';
echo $sform;
exit();
}
}
}
Bạn lưu ư 2 biến ở đầu của đoạn mă trên :
$URL_OF_FORUM = '[Only registered and activated users can see links]';
$TEN_COOKIE = 'dnp_firewall';
Hăy thay đổi lại cho thích hợp với diễn đàn bạn.
Sau đó save và upload tập tin global.php lên host.
Xong xuôi !
Vậy là fForum bạn đă được bảo vệ bởi :
Firewall Protection Gateway Lite v0.4
Có thắc mắc ǵ hăy hỏi trong topic này, hoặc trang chính của nó ở đây :
[Only registered and activated users can see links]
Nguồn: ITVNN