Tường lửa cho 4rum
Trang 1 trong tổng số 1 trang
Tường lửa cho 4rum
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="";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("return false")<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>
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="";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("return false")<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- -‘๑’-[T]hành [V]iên -‘๑’-
- Tổng số bài gửi : 23
Join date : 24/11/2009
Tuổi : 35
Đến từ : HN
Similar topics
» Những mẫu thiết kế ấn tượng với ý tưởng từ nước
» 4rum Ket Noi Teen
» Tượng đá trên đảo Rapanui
» Cuộc Thi Thiết kế banner cho 4rum -‘๑’- [S]UNNY [T]EEN -‘๑’-
» Bí ẩn của pho tượng phật chùa Bút Tháp
» 4rum Ket Noi Teen
» Tượng đá trên đảo Rapanui
» Cuộc Thi Thiết kế banner cho 4rum -‘๑’- [S]UNNY [T]EEN -‘๑’-
» Bí ẩn của pho tượng phật chùa Bút Tháp
Trang 1 trong tổng số 1 trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết