The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I need to include a php file in all my vBulletin files before any database connection is made, in order to prevent ddos'ing of my site which results in all the db connections being busy. Where would be a good place to include a php file without disturbing the rest of vBulletin? global.php?
The included file will mainly be creating files on the server, and if it detects abuse, will send out a error 403 page. |
#2
|
||||
|
||||
![]()
Well... in this case, global.php would be a better choice as all the files calls for that file. Just put the include code at the very top.
|
#3
|
||||
|
||||
![]()
Um, before any database connection is made?
What code exactly are you wanting to place? |
#4
|
|||
|
|||
![]()
DDOS attack should be blocked at the outerborders of your DC or host.
If that is not possible it should be blocked on network or webserver level. If you are really under a DDS, then you won't be able to stop it if the attack can get as far as your forum (or any other page on your server). |
#5
|
|||
|
|||
![]()
I phrased myself badly.
My problems are most likely the case of a denial of service attack, but it is hard to know for certain. My host is cheap and crappy, but i have not yet become annoyed enough at these attacks that i've deemed it time to change to a better one, since they usually happen late at night. It could also simply be a case of a crappy, overloaded host, but the regularity in which these dos 's happen make that unlikely. In any way, i'm doing this more as a way to confirm what is happening than as an effective way of stopping it, although that may be possible as well. This is the script that i want to include. The "faked header" thing could be changed i guess if i can't get it to execute before headers are already sent. I did not write this script myself. PHP Code:
|
#6
|
||||
|
||||
![]()
I'd guess config.php is the file you'd want to go for. It will be used first before anything else happens.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|