Banned forum?

Started by finnhack, September 20, 2004, 03:24:46 PM

Previous topic - Next topic

finnhack

Probably writing in wrong area, but I give it a try.

Nearly 10% of the members on a forum administrated by me works for the same specific organisation/company. Somehow and for some reason the company has recently blocked the access to the forum. The strange thing is that they haven't blocked the domain or the directory where the forum is placed, but in some other way they have managed to get the forum inaccessible. Each time someone at the company tries to load the forum we get an error in the forum error log like this:
Quote
Database Error: Lost connection to MySQL server during query
File: /home/xxx/Sources/Security.php
Line: 233
The user himself gets a "The page cannot be displayed"-error.  For users connecting from outside the company everything works just fine... I wonder if anyone knows what method can be used to block forumaccess like its done in my case, and of course if there is any way to get around this "problem"  ;)

-- finnhack

ps. users at the mentioned company can access other pages on the same domain, also other pages using mysql such as Coppermine etc..

Owdy

[offtopic] What are your forum about? Just curious why it has to be banned :)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

finnhack

Quote from: Owdy on September 20, 2004, 04:19:43 PM
[offtopic] What are your forum about? Just curious why it has to be banned :)

The problem is not the topics or what is discussed on the forum, I guess the problem is that it is too popular, nobody has time to do any real working there ...  ;)

[Unknown]

It might be that the proxy is screwing with it; I'm not sure.  What's on line 225 - 240 of Security.php?

-[Unknown]

finnhack


                // Check the ban, if there's information.
                if (!empty($ban_query))
                {
                        $request = db_query("
                                SELECT ban_type, restriction_type, reason
                                FROM {$db_prefix}banned
                                WHERE " . implode(' OR ', $ban_query) . "
                                LIMIT 1", __FILE__, __LINE__);
                        // Store every type of ban that applies to you in your session.
                        while ($row = mysql_fetch_assoc($request))
                                $_SESSION['ban'][$row['restriction_type']] = array(
                                        'is_banned' =>true,
                                        'reason' => empty($row['reason']) ? '' : '<br /><br /><b>' . $txt['ba\
n_reason'] . ':</b> ' . $row['reason'],
                                        'type' => $row['ban_type']
                                );
                }



This would be lines 226-241. About proxy: the connections are now made through another proxy/gateway compared to when everything was working ok.

[Unknown]

Aha.  Okay, go into features and options and check "disable hostname lookups".

-[Unknown]

finnhack

Thanks - that could be something! Unfortunately I can not confirm that this is working because just 30 minutes ago I noticed that everything was back to normal again! In other words: the users are now connecting through the "old" gateway and everything works ok. It seemes that somebody is playing around with their proxy or something!? I just have to wait and see what they do next, and then test if the disableing of hostname lookups helps.

Thanks for your time!


Advertisement: