Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Cookie with Flood/Ddos Block Details »»
Cookie with Flood/Ddos Block
Version: 1.00, by memomemo memomemo is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 08-21-2007 Last Update: 08-21-2007 Installs: 22
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-26-2007, 01:52 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FYI - this mod causes a problem for any people trying to access your site using a proxy
Reply With Quote
  #23  
Old 09-26-2007, 02:14 AM
theFAILURE's Avatar
theFAILURE theFAILURE is offline
 
Join Date: Jan 2005
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree, you need the prevention from the hardware level.

It's the requests to the server that bring the server down, not the success or failure of a page.

When you have 1000's of drone pc's requesting info from your server every second, software follies like this wont cut it.
Reply With Quote
  #24  
Old 11-10-2007, 10:57 AM
ParsianSat_Net ParsianSat_Net is offline
 
Join Date: Sep 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear
only edit index.php and showthread.php ?
Reply With Quote
  #25  
Old 12-08-2007, 08:41 AM
Hamednet's Avatar
Hamednet Hamednet is offline
 
Join Date: Oct 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dear

I should Change this adress

Quote:
header("Location: http://www.asdğğğğğkfasdfjkashfjashfjashdf.com");
to my domain ?

thanks
Reply With Quote
  #26  
Old 12-08-2007, 08:39 PM
AWS3 AWS3 is offline
 
Join Date: Dec 2007
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He shows in the Opera http://www.asdğğğğğkfasdfjkashfjashfjashdf.com and not the forum

Is this the bug ?
Reply With Quote
  #27  
Old 12-09-2007, 07:57 AM
A0007's Avatar
A0007 A0007 is offline
 
Join Date: Oct 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is http://www.asdğğğğğkfasdfjkashfjashfjashdf.com ddoser redirect page,
u can change it to any address, when ddos attak will be redirected )))
Reply With Quote
  #28  
Old 12-10-2007, 06:46 AM
Hamednet's Avatar
Hamednet Hamednet is offline
 
Join Date: Oct 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ِDears

my site users say they when go to site index see
Quote:
Please Open Browser Cookies
" message

They couldn't go to mydomain.com/forum/index.php

It's very bad !!!!

why ?
Reply With Quote
  #29  
Old 12-10-2007, 10:16 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This might help for a amatuer DOS attack, very unlikely on a DDOS.

Also those who try to attack a server generally do not allow for cookies (often not even a real browser or just a basic client on machine in a botnet).
Reply With Quote
  #30  
Old 12-10-2007, 10:44 AM
Hamednet's Avatar
Hamednet Hamednet is offline
 
Join Date: Oct 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mr. Marco van Herwaarden

Is there a Anti Flood for VB ?

my site has been attack 2 days ?

what is SOLUTION ?
Reply With Quote
  #31  
Old 12-11-2007, 04:23 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hamednet View Post
Mr. Marco van Herwaarden

Is there a Anti Flood for VB ?

my site has been attack 2 days ?

what is SOLUTION ?
To contact your webhost and let them know you're under attack.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08736 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete