Diễn đàn A6 K61-Trường THPT Phan Đình Phùng-Hà Tĩnh
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.

Diễn đàn A6 K61-Trường THPT Phan Đình Phùng-Hà Tĩnh

http://a6vn.4vn.in or http://a6vn.tk or http://a6vn.good.to
 
Trang ChínhTrang Chính  PortalPortal  Latest imagesLatest images  Tìm kiếmTìm kiếm  Đăng kýĐăng ký  Đăng Nhập  

 

 Firewall cho 4rum

Go down 
Tác giảThông điệp
Admin
Admin
Admin
Admin


Nam Tổng số bài gửi : 259
Age : 33
Đến từ : Hà Tĩnh
Registration date : 12/05/2008

Firewall cho 4rum Empty
Bài gửiTiêu đề: Firewall cho 4rum   Firewall cho 4rum EmptyTue May 13, 2008 1:50 pm

Download Firewallhttp://it4everyone.net/forum/attachment.php?attachmentid=72&d=1196799690
Đây là phiên bản Lite của tường lửa trên website, forum. Bản quyền của silveryhat.com. 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.

Dưới đây là cách cài đặt cho hệ thống forum VBB.

I - Chuẩn bị :

+ Bạn tải bộ style và images của Firewall
+ Sau khi tải xong bạn giải nén và upload lên đường dẫn chính của forum, ví dụ: http://tenwebsite.com/tendiendan (tùy vào vị trí bạn cài đặt forum của mình)

Vậy là phần chuẩn bị đã hoàn tất.

II - Cài đặt :

Mở tập tin global.php, tìm:




<?php



thêm vào sau đó :




session_start();
$URL_OF_FORUM = 'http://it4everyone.net';
$TEN_COOKIE = 'dnp_firewall';

if ( strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot')||strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'msnbot')||strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp'))
{}
else{
if( file_exists($firewall) ){ require_once($firewall);}
if((strpos($_SERVER['HTTP_REFERER'], $URL_OF_FORUM) !== 0) || (strpos($_SERVER['HTTP_REFERER'], $URL_OF_FORUM) !== 0) || (strpos($_SERVER['HTTP_REFERER'], $URL_OF_FORUM) !== 0) ) {
if (empty($HTTP_SESSION_VARS['{$TEN_COOKIE}']))
{
if (!empty($HTTP_POST_VARS['{$TEN_COOKIE}']))
{
session_register('{$TEN_COOKIE}');
$HTTP_SESSION_VARS['{$TEN_COOKIE}']='myforum_protection';
header("location: ".$_SERVER['REQUEST_URI']);
exit();
}

$sform='<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html xmlns=http://www.w3.org/1999/xhtml> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <meta name="keywords" content="hoiquantinhoc, hoiquantinhoc.com, hoiquan, viettien, vbb, skin vbb, style vbb, source vbb, mod vbb, ngoaingutinhoc,ngoaingutinhoc.net, nnth, clbngoaingutinhoc, ngoaingu, tinhoc, tin hoc, amnhac, music, IT, forum, share code, source, am nhac, kysitrang, giai tri, entertainment, thu gian, nghe nhac, ket ban, hqth.com, kysitrang58, friend, software, hoc hoi, trao doi kinh nghiem..." /> <meta name="description" content="HOIQUANTINHOC.COM Cung nhau trao doi, thao luan, giao luu, hoc hoi kinh nghiem, giai tri... http://hoiquantinhoc.com" /> <title>Protection Gate Lite v0.4 by HQTH</title> <link href=dnp_style.php rel=stylesheet type=text/css /> <script language=JavaScript><!--
//Anti-right click for all broswers by HQTH © 2006
//Redistributed for Vn communities by HQTH
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=clickNS;document.oncontextmenu=clickIE;document.onselectstart=clickIE}document.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">&nbsp;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 Edit by HQTH"/> </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=http://hoiquantinhoc.com target=_blank>HOIQUANTINHOC.COM</a> &copy; 2007<BR></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 đoạn mã trên :




$URL_OF_FORUM = 'http://it4everyone.net';
$TEN_COOKIE = 'dnp_firewall';




Hãy thay đổi lại cho thích hợp với diễn đàn bạn. Còn dnp_firewall thì thay bằng chữ gì cũng được.

Sau đó save và upload tập tin global.php lên host.

Forum bạn đã được bảo vệ bởi Firewall Protection Gateway Lite v0.4

Chúc các bạn thành công !!!
Về Đầu Trang Go down
https://a6hacker.forumvi.com
 
Firewall cho 4rum
Về Đầu Trang 
Trang 1 trong tổng số 1 trang
 Similar topics
-
» Một số trục trặc sau khi cài đặt firewall và cách giải quyết
» Firewall - Attack and defense
» Các kỹ thuật vượt FireWall(tường lửa), lướt web nặc danh và secure mail

Permissions in this forum:Bạn không có quyền trả lời bài viết
Diễn đàn A6 K61-Trường THPT Phan Đình Phùng-Hà Tĩnh :: Hoa Quả Sơn Khách :: Thế giới tin học-
Chuyển đến