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
  #12  
Old 08-23-2007, 07:15 AM
memomemo's Avatar
memomemo memomemo is offline
 
Join Date: Aug 2006
Location: Turkey
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AzzidReign View Post
You misunderstood, I said server config files, not vbulletin config.php.
Sorry. No this mod working for whoewer php files.
Reply With Quote
  #13  
Old 08-23-2007, 07:21 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I pressed refresh non stop for 2 minutes on that site, and didnt get blocked. not working.

I even opened over 100 pages in tabs, and still not blocked. not working sorry.
Reply With Quote
  #14  
Old 08-23-2007, 07:25 AM
memomemo's Avatar
memomemo memomemo is offline
 
Join Date: Aug 2006
Location: Turkey
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337 View Post
I pressed refresh non stop for 2 minutes on that site, and didnt get blocked. not working.

I even opened over 100 pages in tabs, and still not blocked. not working sorry.
No 2 minute block.
Only 61 refresh in 1 minute working.

or automatic reset and again number 1.
Reply With Quote
  #15  
Old 08-23-2007, 06:48 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It block me i refreshed 61 times and it blocked me!!!
Reply With Quote
  #16  
Old 08-24-2007, 09:07 AM
memomemo's Avatar
memomemo memomemo is offline
 
Join Date: Aug 2006
Location: Turkey
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy View Post
It block me i refreshed 61 times and it blocked me!!!

This mod for attack
Please clear cookies in explorer or mozilla
Reply With Quote
  #17  
Old 08-29-2007, 02:41 AM
killswitch killswitch is offline
 
Join Date: Oct 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what id the person is not signed up and not a member. how will it block them then?
Reply With Quote
  #18  
Old 08-31-2007, 05:41 PM
Knippschild Knippschild is offline
 
Join Date: Mar 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Regardless of the person not being signed up, it sets a cookie on their computer


The problem with this is if cookies are disabled
Reply With Quote
  #19  
Old 09-06-2007, 09:42 AM
realsumon realsumon is offline
 
Join Date: Feb 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what shall i put here - header("Location: http://www.asdğğğğğkfasdfjkashfjashfjashdf.com");

my problem is last night - i have 1006 guest from - 70.87.15.10 That IP::

and they load every page.. if i use that code it will be ok?
Reply With Quote
  #20  
Old 09-24-2007, 02:39 AM
memomemo's Avatar
memomemo memomemo is offline
 
Join Date: Aug 2006
Location: Turkey
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by realsumon View Post
what shall i put here - header("Location: http://www.asdğğğğğkfasdfjkashfjashfjashdf.com");

my problem is last night - i have 1006 guest from - 70.87.15.10 That IP::

and they load every page.. if i use that code it will be ok?

Change this adres example : http://www.yoursite.com/banned.htm
Reply With Quote
  #21  
Old 09-24-2007, 03:03 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are seriously being ddossed or any real attack, nothing you can do on the software level will help. All of such attacks need to be fought on the hardware/network level.
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 10:36 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.13333 seconds
  • Memory Usage 2,319KB
  • 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
  • (4)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