Notifications
Clear all

[Sticky] Handmade "Bad behavio(u)r 2" include

37 Posts
13 Users
0 Reactions
10.7 K Views
 lucy
(@lucy)
Posts: 52
Trusted Member
 

I got hit by spammers the other day, and I have no idea why.


 
Posted : 26/10/2016 2:38 am
(@sheepcontrol)
Posts: 332
Reputable Member
Topic starter
 

I got hit by spammers the other day, and I have no idea why.

Because they can and it's at almost no cost to them - sadly.
This add-on only does so much, it keeps some rude bots away, but better bots can still get past it, sadly.


 
Posted : 27/10/2016 1:00 pm
 Kate
(@kate)
Posts: 133
Estimable Member
 

Hi

Sheepcontrol - I cant get open the attachement to download. I uploaded the bad behaviour files and did the modify changes to the files that you said and its not showing on the footer yet. I take it that shows up once the site has been hit on? I hope i uploaded the right files i did not see a version for efiction 3 in their list of downloads so I got their current stable release. I hope these are the right files. Im using efiction 3.55 http://www.adrfitindreams.com

thank you i was wondering how to add in bad behaviour you been very helpful 🙂 can u supply a download link please i not sure i got the right files. thank you

many thanks
Kate


 
Posted : 02/02/2017 2:36 pm
Nadia
(@nadia)
Posts: 255
Reputable Member
 

Did you download the files that are attached to the first post?
I've just downloaded and installed Bad Bahaviour successfully at 3 archives and it works perfectly.  :think:


My Hub TrekNation | World of X | Arda Fanfiction

 
Posted : 14/05/2017 5:25 am
 Kate
(@kate)
Posts: 133
Estimable Member
 

don't worry I missed the download link in your post I re read it all again.

Ive now installed it, followed the steps to install the mod and the bbstats is not printing out for me. What am I missing and doing wrong here please? I have had a hacker already on the site this week and I have just deleted the account, so this mod would be really appreciated by me to help stop hacking and spam attempts further.

I added the code to the files as said in your instructions and added {bb2stats} to the footer. All that happens is the bb2stats shows and it does not print bad behaviour has blocked ... etc.
many thanks

will the mod work even though the stats wont print please?

kate


 
Posted : 30/07/2017 3:40 pm
Nadia
(@nadia)
Posts: 255
Reputable Member
 

Can you please always add a link to your archive, since I don't have the time to search for it every time you have a question ...

I still don't get why you don't get the script working.  :unsure:


My Hub TrekNation | World of X | Arda Fanfiction

 
Posted : 16/08/2017 9:16 am
(@guest10764)
Posts: 0
 

Possibly a dumb question: If you don't have display_stats enabled, how can you tell this mod is working? Where is it logging its work? Is there anything you have to do to enable it?


 
Posted : 18/08/2017 11:09 pm
Nadia
(@nadia)
Posts: 255
Reputable Member
 

Step 4 is how to make it visible on your archive. As I said, it's perfectly working on ALL of my sites. :upsidedown:


My Hub TrekNation | World of X | Arda Fanfiction

 
Posted : 20/08/2017 5:30 am
 Kate
(@kate)
Posts: 133
Estimable Member
 

Hi sorry for no link. It's http://www.adriftindreams.com I think I got the code in right place in the files. But stats aren't printing for me

Thanks
Kate


 
Posted : 04/09/2017 10:50 am
 Sue
(@sue)
Posts: 131
Estimable Member
 

thanks for this, Sheepie!!!

Very clear instructions. I got hammered with spam stuff in the last few months, so fingers crossed BB helps!

thanks again.

Edited to add: Holy smoke, it's only been installed for an hour and it's already stopped something. Woot!

Edited again: AMAZING. So far, over a hundred spamerators!! Many thanks, Sheepie!!!


 
Posted : 05/09/2017 7:39 pm
(@sheepcontrol)
Posts: 332
Reputable Member
Topic starter
 

Good to hear it's doing some good 🙂

And sorry for being on a different planet for a few decades (slight exaggeration detected)


 
Posted : 19/10/2017 10:04 pm
 Kate
(@kate)
Posts: 133
Estimable Member
 

Hiyah

i updated to the 355 efiction. Re did the bad behaviour. It is now all working on the site. Followed the instruction was easy to use

says bad behaviour has blocked 154 access attempts in 7 days

thank u guys xx just what was needed hoping it stop the hackers from making accounts as I took the links off as its just for my fiction and poetry. 🙂 very happy now even said yay out loud lol

thank u so much xx
Kate


 
Posted : 09/12/2017 2:26 pm
 Sue
(@sue)
Posts: 131
Estimable Member
 

Kate, I can really recommend the modifications that Ladama has shared on this thread as well.

It adds a challenge question to the Registration process. Just this simple step has made a huge difference to a phpBB (bulletin board) site I administer, and I am confident that it will similarly defeat the (dental) bots.


 
Posted : 09/12/2017 7:50 pm
 Kate
(@kate)
Posts: 133
Estimable Member
 

Hi Sue

thanks u for ur help. I don't use a forum on the site since it isn't needed.

my site can be viewed here http://www.adriftindreams.com .

I don't have user registration in use either as it is for my own fiction and poetry, so I have not used the login block or links.

regards, Kate


 
Posted : 11/12/2017 1:10 pm
 lucy
(@lucy)
Posts: 52
Trusted Member
 

So I've tried to add the stats to my site, but with no luck. this is what the page setup looks like:

<?php
// ----------------------------------------------------------------------
// Copyright (c) 2007 by Tammy Keefer
// Based on eFiction 1.1
// Copyright (C) 2003 by Rebecca Smallwood.
// http://efiction.sourceforge.net/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------


/*
This file does some of the setup of the common elements of the pages within your site.
It also checks the common $_GET variables and cleans them up to prevent hacking and attacks.
*/

if(!defined("_CHARSET")) exit( );

$favtypes = array("SE" => "series", "ST" => "stories", "AU" =>"authors");
$revtypes = array("SE" => "series", "ST" => "stories");

$catlist = array( );
$catresults = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_categories ORDER BY leveldown, displayorder");
while($cat = dbassoc($catresults)) {
$catlist[$cat['catid']] = array("name" => stripslashes($cat['category']), "pid" => $cat['parentcatid'], "order" => $cat['displayorder'], "locked" => $cat['locked'], "leveldown" => $cat['leveldown']);
}
$charlist = array( );
$result = dbquery("SELECT charname, catid, charid FROM ".TABLEPREFIX."fanfiction_characters ORDER BY charname");
while($char = dbassoc($result)) {
$charlist[$char['charid']] = array("name" => stripslashes($char['charname']), "catid" => $char['catid']);
}
$classlist = array( );
$classresults = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_classes ORDER BY class_name");
while($class = dbassoc($classresults)) {
$classlist[$class['class_id']] = array("type" => $class['class_type'], "name" => stripslashes($class['class_name']));
}
$classtypelist = array( );
$classtyperesults = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_classtypes ORDER BY classtype_name");
while($type = dbassoc($classtyperesults)) {
$classtypelist[$type['classtype_id']] = array("name" => $type['classtype_name'], "title" => stripslashes($type['classtype_title']));
}
$ratlist = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_ratings");
while($rate = dbassoc($ratlist)) {
$ratingslist[$rate['rid']] = array("name" => $rate['rating'], "ratingwarning" => $rate['ratingwarning'], "warningtext" => $rate['warningtext']);
}
unset($catresult, $result, $classresults, $classtyperesults, $ratlist, $type, $rate, $class, $char, $cat);
$action = escapestring($action);
// Set up the page template

if($action != "printable") {
$tpl->assignInclude( "header", "./$skindir/header.tpl" );
$tpl->assignInclude( "footer", "./$skindir/footer.tpl" );
}
$tpl->prepare( );
// End page template setup

if(file_exists("$skindir/variables.php")) include("$skindir/variables.php");

// If they weren't set in variables.php, set the defaults for these
if(!isset($up)) $up = "<img src=""images/arrowup.gif"" border="0" width="13" height="18" align="left" alt=""._UP."">";
if(!isset($down)) $down = "<img src=""images/arrowdown.gif"" border="0" width="13" height="18" align="right" alt=""._DOWN."">";

$linkquery = dbquery("SELECT * from ".TABLEPREFIX."fanfiction_pagelinks ORDER BY link_access ASC");
if(!isset($current)) $current = "";

while($link = dbassoc($linkquery)) {
if($link['link_access'] && !isMEMBER) continue;
if($link['link_access'] == 2 && uLEVEL < 1) continue;
if($link['link_name'] == "register" && isMEMBER) continue;
if(strpos($link['link_url'], " http://") === false && strpos($link['link_url'], " https://") === false) $link['link_url'] = _BASEDIR.$link['link_url'];
$tpl->assignGlobal($link['link_name'], "<a href=""".$link['link_url'"]."" title="".$link['link_text'].""".($link['link_target'] ? " target="_blank"" : "").(!empty($link['link_key']) ? " accesskey='".$link['link_key']."'" : "").($current == $link['link_name'] ? " id="current"" : "").">".$link['link_text']."</a>");
$pagelinks[$link['link_name']] = array("id" => $link['link_id'], "text" => $link['link_text'], "url" => $link['link_url'], "key" => $link['link_key'], "link" => "<a href=""".$link['link_url'"]."" title="".$link['link_text'].""".(!empty($link['link_key']) ? " accesskey='".$link['link_key']."'" : "").($link['link_target'] ? " target="_blank"" : "").($current == $link['link_name'] ? " id="current"" : "").">".$link['link_text']."</a>");
}

if($action != "printable") $tpl->newBlock("header");
$tpl->assignGlobal("sitename", $sitename);
$tpl->assignGlobal("slogan", $slogan);
$tpl->assignGlobal("page_id", $current);
$tpl->assignGlobal("basedir", _BASEDIR);
$tpl->assignGlobal("skindir", $skindir);
$tpl->assignGlobal("rss", "<a href="'"._BASEDIR.$pagelinks['rss'"]['url']."'><img src="'"._BASEDIR."images/xml.gif'" alt='RSS' title = 'RSS' border='0'></a>");
if(isset($pagelinks['rss'])) $tpl->assignGlobal("columns", $displaycolumns);
if($action != "printable") {
$tpl->newBlock("footer");
$copy = dbquery("SELECT message_text FROM ".TABLEPREFIX."fanfiction_messages WHERE message_name = 'copyright' LIMIT 1");
if($copy) list($copyright) = dbrow($copy);

foreach($blocks as $block=>$value) {
if(empty($value['status']) || ($value['status'] == 2 && $current != "home")) continue;
if(empty($value['file'])) continue;
if($value['status'] && file_exists(_BASEDIR."blocks/".$value['file'])) {
$content = "";
$tpl->assignGlobal($block."_title", !empty($value['title']) ? stripslashes($value['title']) : "");
if(file_exists(_BASEDIR."blocks/".$value['file'])) include(_BASEDIR."blocks/".$value['file']);
$tpl->assignGlobal($block."_content", $content);
}
}
$tpl->assign( "footer", $copyright);
if ( function_exists('bb2_insert_stats') )
$tpl->assign("bb2stats", bb2_insert_stats() );
$tpl->gotoBlock( "_ROOT" );
}


$tpl->gotoBlock( "_ROOT" );
?>

 
Posted : 04/06/2018 3:37 am
Page 2 / 3
Share: