![]() |
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? |
PHP Code:
|
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 |
PHP Code:
|
No problem. I'm dangerous enough to dabble as it is, it worked :) sweet.
|
All times are GMT. The time now is 11:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|