The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Redirect malicious page loads
Is there a way to add this into the forum index.php??
<? $gawd = array ("xxx.xxx.xxx.xxx", "xxx.xxx.xxx.xxx", "xxx.xxx.xxx.xxx"); foreach($gawd as $kill) { if (ereg($kill, $_SERVER['REMOTE_ADDR'])) { header('Location: http://www.ic3.gov'); exit(); } else { LOAD FORUM INDEX HERE; exit(); } } ?> I know I can ban them in the CP but this still uses resources to load the error page. Wouldn't something like this be less intensive. maybe .htaccess would be a better way to go. I dunno what does anyone think? |
#2
|
||||
|
||||
PHP Code:
|
#3
|
|||
|
|||
wow that was fast. I did a htaccess on it with RewriteCond and Rewriterule. I got to thinking maybe it would be better in php then again maybe not since they could target something else to reload.
Thank you very much for the information --------------- Added at 01:08 --------------- Warning: in_array(): Wrong datatype for second argument in /includes/init.php(329) : eval()'d code on line 3 ?? REMOTE_ADDR my start up order is 1 |
#4
|
||||
|
||||
PHP Code:
|
#5
|
|||
|
|||
No problem. I'm dangerous enough to dabble as it is, it worked sweet.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|