Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN NukeSentinel(tm) issues
Author Message
shotokan
Worker
Worker



Joined: Aug 27, 2006
Posts: 172

PostPosted: Sat May 19, 2007 12:40 pm Reply with quote

I am being blocked by sentinel because of Abuse-FLOOD but is caused by a block on my own server.

That's what is on the message:

Date & Time: 2007-05-19 14:35:35 EDT GMT -0400 Blocked IP: 68.72.138.117 User ID: Anonymous (1)
Reason: Abuse-Flood
--------------------
User Agent: none
Query String: [ Only registered users can see links on this board! Get registered or login! ]
Get String: [ Only registered users can see links on this board! Get registered or login! ]
Post String: [ Only registered users can see links on this board! Get registered or login! ] Forwarded For: none Client IP: none Remote Address: 68.72.138.117 Remote Port: 38824 Request Method: GET


How can i avoid my own server IP being catch by Sentinel?

_________________
Shotokan

Last edited by shotokan on Sat May 19, 2007 11:14 pm; edited 1 time in total 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat May 19, 2007 1:24 pm Reply with quote

just put it in the protected ranges.....in full....
that should solve it...
 
View user's profile Send private message
shotokan







PostPosted: Sat May 19, 2007 4:16 pm Reply with quote

hitwalker wrote:
just put it in the protected ranges.....in full....
that should solve it...


I did like you said and also added at the excluded range. I notice my own local machine was added in both excluded and protected range as the "Admin Machine", so i add in both places.

Now i don't get the sentinel default page anymore, but i am getting the "There isn't content right now for this block." message on my block.

Why would that be happening?
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat May 19, 2007 11:17 pm Reply with quote

I'm wondering how often this script is called, because it seems to be too fast for the flood blocker

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
shotokan







PostPosted: Sat May 19, 2007 11:27 pm Reply with quote

evaders99 wrote:
I'm wondering how often this script is called, because it seems to be too fast for the flood blocker
This block is reading a db with live stats, so it probably runs a lot. I try to find what is interfering with it because was running ok until i installed sentinel.

Also since i got the message saying it was flooding i was sure was sentinel. When i added my own server ip to the protected and excluded list it stop the sentinel block but it won't show the content anymore. all other blocks ok but that specific one after i got that sentinel e-mail it never worked again.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun May 20, 2007 7:26 am Reply with quote

It is still tripping the flood blocker, BUT, now it is not banning, probably just trying to redirect, hence no content for the block. Try turning flood blocker off just to make sure the block is working properly. Let us make sure of that first.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
shotokan







PostPosted: Sun May 20, 2007 7:24 pm Reply with quote

montego wrote:
It is still tripping the flood blocker, BUT, now it is not banning, probably just trying to redirect, hence no content for the block. Try turning flood blocker off just to make sure the block is working properly. Let us make sure of that first.


OK. I did turned flood off but the block still does not have content.

Also a lot of people were getting blocked on the forums and other modules by the blocker-flood. Should the time be 3 seconds rather than 2 to avoid those things?
 
hitwalker







PostPosted: Mon May 21, 2007 3:21 am Reply with quote

mmmm,let me ask you this...
is it realy needed to use the flood blocker?
if not turn it off.
 
montego







PostPosted: Mon May 21, 2007 6:10 am Reply with quote

Quote:

OK. I did turned flood off but the block still does not have content.


For now, I would do as Hitwalker has suggested and keep Flood blocker off, but you need to debug why that block is no longer giving you content. There is nothing in NS that I can think of that would be causing this.

In re-reading this thread, I am now confused at this message you are getting. You said that this is reading live stats from a db, so my inclination is to think this block is using an IFRAME and the page within that is refreshing itself going against this stats db. Another way to do it would be through AJAX. How is this being done in this case?

Are you just getting a blank block or is the standard block error message of "There is no content for this block" error text within the block? Sorry, but I need to ask that even though you may think you have already answered it.
 
shotokan







PostPosted: Mon May 21, 2007 7:23 am Reply with quote

montego wrote:
Quote:

OK. I did turned flood off but the block still does not have content.


For now, I would do as Hitwalker has suggested and keep Flood blocker off, but you need to debug why that block is no longer giving you content. There is nothing in NS that I can think of that would be causing this.

In re-reading this thread, I am now confused at this message you are getting. You said that this is reading live stats from a db, so my inclination is to think this block is using an IFRAME and the page within that is refreshing itself going against this stats db. Another way to do it would be through AJAX. How is this being done in this case?

Are you just getting a blank block or is the standard block error message of "There is no content for this block" error text within the block? Sorry, but I need to ask that even though you may think you have already answered it.
Don't worry montego.

As for your questions the block is not doing it via IFRAME but it does read the DB every time you open the main page to refrash the stats.

Regarding the error message on the block, yes i am getting the standard message "There is no content for this block" text ike you mentioned. The one is on the mainfile.php when it thinks the block is empty. I think some how the block content is being redirected like you mentioned and the mainfile thinks the block is empty.

The only reason i am saying that is because when i just finished the NS install and went to my main page the blocks were displaying the NS default page saying that it was blocked and then seconds later i got the e-mail. So after that i remove my ip from the DB via phpmyadmin and added the IP on the protected and excluded like hitwalter suggested but then the block wouldn't show up again.

Welll this is quite the story.
 
montego







PostPosted: Mon May 21, 2007 8:31 pm Reply with quote

Quote:

Welll this is quite the story.


Well, now the plot thickens even more and I am even more confused. The original thread started with flood blocker being tripped due to a block and the assumption that several of us took is that the block itself was being refreshed on a very frequent basis (under the 2 or 3 seconds). But, as it turns out, the block is a regulare o'l block that is only being "hit" once per main page reload. I seriously doubt that you have your mainpage refreshing on a 2 -3 interval automatically, so I am confused as to how the flood blocker was being tripped.

I now can honestly say that I have no clue what might be going on here (with the original flood block issue). The "There is no content for this block" will not occur upon a "redirect". I was thinking IFRAME at the time when I asked the question and posed that possibility.

There is just something wrong with that block period. My guess is there is an issue with some database call (which, unfortunately, you'll have to figure out). You can even turn off NS altogether with the switch in the NS admin console to rule out NukeSentinal altogether.

My money is on an issue with the code or query to a table that is causing the $content variable within that block to never be given a value.
 
shotokan







PostPosted: Tue May 22, 2007 2:37 pm Reply with quote

montego wrote:
Quote:

Welll this is quite the story.


My money is on an issue with the code or query to a table that is causing the $content variable within that block to never be given a value.


Ok Sir. Montego.
Your money is almost saved... for now.. Laughing but i am still trying to find something and i think this could help you to help me.

Here is the block code

Code:


<?php

  include ('blocks/config-PsychoNuke-Fun.php');
  $type = 'players';
  $sort = 'kills';
  $order = 'desc';
  $limit = 10;

  //------------------------------------------------------------------------------------
  // DO NOT CHANGE ANYTHING BELOW THIS LINE
  //------------------------------------------------------------------------------------

  $ps2file = 'pn-smalltopten';

  if (substr($nukeURL, strlen($nukeURL)-1, 1) != '/')
    $nukeURL .= '/';

    $content = file_get_contents("$nukeURL" . "modules.php?name=$module_name&isBlock=1&ps2file=$ps2file&type=$type&limit=$limit&sort=$sort&order=$order");

?>


I did added at the end of the block right before the ?> a echo for each of the content variable individually like that:

Code:




    echo $nukeURL;
    echo 'modules.php?name=';
    echo $module_name;
    echo '&isBlock=1';
    echo '&ps2file=';
    echo $ps2file;
    echo '&type=';
    echo $type;
    echo '&limit=';
    echo $limit;
    echo '&sort=';
    echo $sort;
    echo '&order=';
    echo $order;


and displayed in the page and i got the correct content to display the block wich is this [ Only registered users can see links on this board! Get registered or login! ]

So it seems to me the content is being passed but for some reason the block is not displaying it. Any idea what would that be?
 
montego







PostPosted: Wed May 23, 2007 6:28 am Reply with quote

Those echos are not showing you anything. Echo the variable $content. It is not getting a value from the file_get_contents call. That call is failing for some reason and now I understand why your flood blocker is getting "tripped". file_get_contents was within the same session and it appears that the session credentials get passed into that function, which in turn was passed into modules.php again, which means into mainfile.php, which means into NS for the flood blocker check!

Now, however, we need to figure out why what is being passed back from file_get_contents() is not showing up.

Replace all those echo statements with just one:

echo "content = $content<br />';

Let us see what, if anything, was passed back into that variable.
 
montego







PostPosted: Wed May 23, 2007 6:29 am Reply with quote

Also, if you have not enabled $display_errors in config.php, please do so so we can see if there are any errors from this call. You may also have to review the Apache error logs to see if there is an underlying error that is not going to the browser.
 
shotokan







PostPosted: Wed May 23, 2007 7:12 am Reply with quote

montego wrote:
Also, if you have not enabled $display_errors in config.php, please do so so we can see if there are any errors from this call. You may also have to review the Apache error logs to see if there is an underlying error that is not going to the browser.
montego

I will do that you asked to see what happens but yesterday night i was "error trying things" and i hit something interesting.

Like i have mentioned before i have a test site which exactly same content as the main one and it resides into a subdirectory of my main site.

So my main site is [ Only registered users can see links on this board! Get registered or login! ] and this test site is [ Only registered users can see links on this board! Get registered or login! ]

Said that if you look that block code again you will notice at the begining that it reads a config file for the block called like that "include ('blocks/config-PsychoNuke-Fun.php');"

Look at the config file config-PsychoNuke-Fun.php below:
Code:


<?php

  // specify the URL of where your PHP-Nuke site is located
//  $nukeURL = 'http://www.mysite.com/';
  $nukeURL = 'http://www.mysite.com/aceite/';

  // specify the name of the module that the version of PsychoNuke is called that you want
  // to use for the blocks
  $module_name = 'PsychoNuke_Fun';

  //--------------------------------------------------------------------------------------
  // DO NOT CHANGE ANYTHING BELOW THIS LINE
  //--------------------------------------------------------------------------------------

  if (!function_exists('file_get_contents')) {
    function file_get_contents($file) {
      $v = file($file);
      return ($v) ? implode('', $v) : false;
    }
  }

?>


For some reason that i can not explain at this moment when i commented the original $nukeURL variable pointing to my main site and changed it to my test side the block now works. So it must be somthing really weird that when i point to the main site the content is not passed along and both the main and the test site has NS enabled.

EDIT: OK definatelly what i just said above is what is causing the issue. I just got an report from an user that there was several download broken on our download modules. So i went to check it was really all broken but if i get the URL copy and past it on the browser it will work but trhoug the download module it won't.

So just for curiosity i did the same thing i mentioned before and pointed one of the downloaded files to my test site instead and it worked perfect.

Now i have no clue what i did wrong during the NS installation that anyhting that has my main site url will not work but the test one will.

So now i know it's beyond the block but it's like my nuke installation does not recognize my main domain anymore but it will on a sub-directory inside that domain. Man this is so weird. I checked the url for the site on Admin panel and everything is oK.

I must have messed up somewhere during that installation because all that was working before but i simply don't have a clue. Mabe with all the .htacess change have done that...i really don't know
 
montego







PostPosted: Wed May 23, 2007 6:05 pm Reply with quote

Make sure with your Preferences, that you have not messed up the main domain's URL.

It should be:
[ Only registered users can see links on this board! Get registered or login! ]

Also, make sure NS is NOT set to ForceURL.

Other than that, I just don't what else could be causing this and unfortunately, I'll be away from the boards for about 10 days starting tomorrow... Sad
 
shotokan







PostPosted: Thu May 24, 2007 7:57 am Reply with quote

montego wrote:
Make sure with your Preferences, that you have not messed up the main domain's URL.

It should be:
[ Only registered users can see links on this board! Get registered or login! ]

Also, make sure NS is NOT set to ForceURL.

Other than that, I just don't what else could be causing this and unfortunately, I'll be away from the boards for about 10 days starting tomorrow... Sad

The Preferences were OK but NS was set to forceURL. So i changed that too but still aving that issue.

So now at least we know that is what is causing my blocks and downloads not to work.

Probably i will open a new thread out of NS and ask for help on this root issue.
 
montego







PostPosted: Fri May 25, 2007 6:33 am Reply with quote

WOW! That is definitely good news. Wish I had thought of it earlier in the thread. Sorry about that. I have long since "forgotten" that feature as when I was first starting out, I had nothing but problems with it. But, the mind gets forgetful as I get older...
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN NukeSentinel(tm) issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©