vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Cookie with Flood/Ddos Block (https://vborg.vbsupport.ru/showthread.php?t=155960)

memomemo 08-21-2007 10:00 PM

Cookie with Flood/Ddos Block
 
Sory I have english bad.

This mod for spam and flood

Updated for other php files.

Open index.php or anywhere php page (ex: showthread.php)

at top find

PHP Code:

<?php

/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.6.8 - Licence Number

Add Below

PHP Code:

<?php


$dd1 
$_COOKIE["spambak"];
$dd2 $_COOKIE["spambakx"];
$value1 '1';
$value7 '1200';
$adresxx $_SERVER['PHP_SELF'];
//cookie check

setcookie("spambak3""ok"time()+6000);  /* expire in 1 hour */
if ($_COOKIE["spambak3"] == "ok"):
else:
setcookie("adres"$adresxxtime()+60);
header("Location: check.php");
exit;
endif;

if (
$_COOKIE["spambak"] >= "60"):

setcookie("spambak"$value7time()+555560);  /* expire in 1 hour */
setcookie("spambakx""ok"time()+555560);  /* expire in 1 hour */
header("Location: http://www.asdğğğğğkfasdfjkashfjashfjashdf.com");
exit;
endif;

if (
$_COOKIE["spambakx"] == "ok"):
$value2 $dd1+1;
setcookie("spambak"$value2time()+60);  /* expire in 1 hour */


else:
setcookie("spambak"$value1time()+60);  /* expire in 1 hour */
setcookie("spambakx""ok"time()+60);  /* expire in 1 hour */

endif;

/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.6.8 - Licence Number



---------------------------------
Upload forum folder
check.php
nocookie.php

Enjoy Good Working

Njm 08-22-2007 03:56 PM

hummmmmm ..! how dose it work dud ?

what do u mean abut flood and spam ?

how dose this issue effact on my index.php ????

thanx any way ..

memomemo 08-22-2007 03:59 PM

Test ; Please click http://www.ailemiz.biz/test.php
Please page refresh 60 time in 1 minute
And block

This mod for DDOS attack

TTG 08-22-2007 06:12 PM

So if you have a forum with more than 61 members searching / posting, the 61st member is going to see an error message ?

memomemo 08-22-2007 06:19 PM

Quote:

Originally Posted by TTG (Post 1323362)
So if you have a forum with more than 61 members searching / posting, the 61st member is going to see an error message ?

No, error message for only one member.
if one member or ddos program 60st refresh page in 60 seconds and error page writing only one member

exc1te 08-22-2007 06:25 PM

Quote:

Originally Posted by memomemo (Post 1323368)
No, error message for only one member.
if one member or ddos program 60st refresh page in 60 seconds and error page writing only one member

this affects only index.php, hovewer, when e.g. some thread (showthread.php) will be ddosed, this mod will not help.

AzzidReign 08-22-2007 06:49 PM

Well, usually people only attack the index file...but can't you do this with your server config files?

memomemo 08-22-2007 08:19 PM

Quote:

Originally Posted by exc1te (Post 1323372)
this affects only index.php, hovewer, when e.g. some thread (showthread.php) will be ddosed, this mod will not help.

Open index.php or anywhere php page (ex: showthread.php)

at top find

<?php

add below code

PHP Code:

$dd1 $_COOKIE["spambak"];
$dd2 $_COOKIE["spambakx"];
$value1 '1';
$value7 '1200';
$adresxx $_SERVER['PHP_SELF'];
//cookie check

setcookie("spambak3""ok"time()+6000); /* expire in 1 hour */
if ($_COOKIE["spambak3"] == "ok"):
else:
setcookie("adres"$adresxxtime()+60);
header("Location: check.php");
exit;
endif;

if (
$_COOKIE["spambak"] >= "60"):

setcookie("spambak"$value7time()+555560); /* expire in 1 hour */
setcookie("spambakx""ok"time()+555560); /* expire in 1 hour */
header("Location: http://www.asdğğğğğkfasdfjkashfjashfjashdf.com");
exit;
endif;

if (
$_COOKIE["spambakx"] == "ok"):
$value2 $dd1+1;
setcookie("spambak"$value2time()+60); /* expire in 1 hour */


else:
setcookie("spambak"$value1time()+60); /* expire in 1 hour */
setcookie("spambakx""ok"time()+60); /* expire in 1 hour */

endif; 


memomemo 08-22-2007 08:21 PM

Quote:

Originally Posted by AzzidReign (Post 1323390)
Well, usually people only attack the index file...but can't you do this with your server config files?

config files dont working ddos or flod attack.
Because dont working

Test : http://www.ailemiz.biz/forum/includes/config.php
Dont working.

Attack only index.php, showthread.php and ex.

AzzidReign 08-22-2007 08:35 PM

Quote:

Originally Posted by memomemo (Post 1323456)
config files dont working ddos or flod attack.
Because dont working

Test : http://www.ailemiz.biz/forum/includes/config.php
Dont working.

Attack only index.php, showthread.php and ex.

You misunderstood, I said server config files, not vbulletin config.php.


All times are GMT. The time now is 07:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01205 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete