blokovanie ip

Česká/Slovenská podpora pro CMS Made Simple
Post Reply
tomco31313
Forum Members
Forum Members
Posts: 10
Joined: Tue May 12, 2009 10:13 am

blokovanie ip

Post by tomco31313 »

caute,

potrebujem zablokovat dake IP adresi, tak aby sa nedostali na web,-..

stiahol som nato IPBlocker modul ...

pisu ze pridat totok : NOTE: You must add this code to the /include.php file, approx. line 227, after the $modload->LoadModules code.

# Load IPBlocker module and test for IP
$ipBlocker = & CmsModule::GetModuleInstance("IPBlocker");
if($ipBlocker && $ipBlocker->ipBanned()){

header("location:". $ipBlocker->GetRedirect());
}

to som pridal, adresu na ktoru bude presmerovvat som dal na zatial google.com teda ta tam bola.. ale ked nahram include neblkokuje to a vypisuje toto :

Warning: Missing argument 1 for IPBlocker::ipBanned(), called in /home/stankovic/uforevue.sk/include.php on line 263 and defined in /home/stankovic/uforevue.sk/modules/IPBlocker/IPBlocker.module.php on line 126

Warning: Cannot modify header information - headers already sent by (output started at /home/stankovic/uforevue.sk/modules/IPBlocker/IPBlocker.module.php:126) in /home/stankovic/uforevue.sk/index.php on line 328


ako to mozems rpavit newiem si radi.. dakujem krásne
Post Reply

Return to “Czech/Slovak - Česky/Slovensky”