The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Banned IP Addresses
Is there some way to stop "Contact us" messages from banned IP's?
|
#2
|
|||
|
|||
In includes/functions.php in function verify_ip_ban() (around line 1000 in vb 4.1.10) there's this code:
Code:
// make sure we can contact the admin if (THIS_SCRIPT == 'sendmessage' AND (empty($_REQUEST['do']) OR $_REQUEST['do'] == 'contactus' OR $_REQUEST['do'] == 'docontactus')) { return; } that specifically allows access to "Contact us" from banned ips. So you could comment out or remove that code. Or if you want to do it via a plugin, I think you could use hook location sendmessage_start and code like: Code:
$savedo = $_REQUEST['do']; unset($_REQUEST['do']); verify_ip_ban(); $_REQUEST['do'] = $savedo; (but I haven't actually tried it). |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|