-‘๑’- [T]een [S]anh [D]ieu -‘๑’-
Chào mừng bạn đến với -‘๑’- [T]een [S]anh [D]ieu -‘๑’- all connect - kết nối không giới hạn.
» Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần hỏi/đáp để biết cách dùng diễn đàn.
» Để có thể tham gia thảo luận, các bạn phải đăng ký làm thành viên, click vào đây để đăng ký.



Join the forum, it's quick and easy

-‘๑’- [T]een [S]anh [D]ieu -‘๑’-
Chào mừng bạn đến với -‘๑’- [T]een [S]anh [D]ieu -‘๑’- all connect - kết nối không giới hạn.
» Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần hỏi/đáp để biết cách dùng diễn đàn.
» Để có thể tham gia thảo luận, các bạn phải đăng ký làm thành viên, click vào đây để đăng ký.

-‘๑’- [T]een [S]anh [D]ieu -‘๑’-
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.

Tường lửa cho 4rum

Go down

Tường lửa cho 4rum Empty Tường lửa cho 4rum

Bài gửi by Admin Wed Dec 02, 2009 10:55 pm

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.
[You must be registered and logged in to see this image.]

- Chuẩn bị

Bạn tải bộ style và images của Firewall theo attachment đã đính kèm bên dưới.
+ 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ụ:

- [You must be registered and logged in to see this link.]
hoặc
- [You must be registered and logged in to see this link.]


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

i - Cài đặt

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

[PHP][PHP]session_start();
$URL_OF_FORUM = 'http://muongla.net/forum;
$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='
Transitional//EN
[You must be registered and logged in to see this link.]





/>


<!--<br />//Anti-right click for all broswers by Shacker ©️ 2006<br />//Redistributed for Vn communities by delynie.silveryhat.com<br />var message=&quot;&quot;;function clickIE() {if (document.all) {(message);return<br />false;}}function clickNS(e) {if<br />(document.layers||(document.getElementById&&!document.all)) {if<br />(e.which==2||e.which==3) {(message);return false;}}}if<br />(document.layers)<br />{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;document.onselectstart=clickIE}document.oncontextmenu=new<br />Function(&quot;return false&quot;)<br />// --><br />
















align=center valign="middle">
src="img/internet.gif">Forum Protection Gate Lite v0.4
align=center> Press the
button below to access to the forum

style=filter:Alpha(Opacity:90);cursor:default>
src="img/home.jpg" border=0 title="Firewall Layout Designed by Silvery
Hat Hacker"/>

name=shfirewall class=button>
href="http://delynie.silveryhat.com" target=_blank>Silvery Hat
Hacker ©️ 2007
DnP
Community
target="_blank">Can\'t access the forum because of Zone
Alarm?

';
echo $sform;

exit();
}
}
}
[/PHP]Bạn lưu ý 2 biến ở đầu đoạn mã trên:
[PHP]$URL_OF_FORUM = 'http://muongla.net/forum;
$TEN_COOKIE = 'dnp_firewall'; [/PHP]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, Forum bạn đã được bảo vệ bởi Firewall Protection Gateway Lite v0.4

Có thắc mắc gì hãy hỏi trong topic này nhé.
</table>
Admin
Admin
-‘๑’-[T]hành [V]iên -‘๑’-
-‘๑’-[T]hành [V]iên -‘๑’-

Tổng số bài gửi Tổng số bài gửi : 23
Join date Join date : 24/11/2009
Tuổi Tuổi : 35
Đến từ Đến từ : HN

Về Đầu Trang Go down

Về Đầu Trang

- Similar topics

 
Permissions in this forum:
Bạn không có quyền trả lời bài viết