Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Misha
Newbie
Newbie



Joined: Oct 05, 2006
Posts: 15

PostPosted: Sat Oct 07, 2006 10:13 am Reply with quote

Well, this was not that hard Smile
Code:
$urlin = array(
'"(?<!/)modules.php\?name=Forums&amp;file=viewtopic&amp;(t|p)=([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=Forums&amp;file=viewtopic&amp;(t|p)=([0-9]*)#([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=ForumNews&amp;id=([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=ForumNews&amp;id=([0-9]*)#([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=ForumNews&amp;news_id=([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=ForumNews&amp;news_id=([0-9]*)#([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))"'
);

$urlout = array(
'ftopic\\1-\\2.html\\3',
'ftopic\\1-\\2.html#\\3\\4',
'fnews-\\1.html\\2',
'fnews-\\1.html#\\2\\3',
'fnewstopic-\\1.html\\2',
'fnewstopic-\\1.html#\\2\\3'
);


The part that I do not understand is
Code:
((\")|(&amp;sid=[a-zA-Z0-9]*)

and

#([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))


I never saw this in original links, so this really puzzles me. But it works, though Smile

_________________
www dot funandsafedriving dot com - My safe driving site 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Oct 07, 2006 11:21 am Reply with quote

That part is due to how the forums pass a "sid" along with the URL. It is for session management. In order for the "tap" to work with the same URL that either has the sid or does not, it needs to have the OR condition in there to pick up both and tap them.

Great job Misha!

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Misha
Newbie
Newbie



Joined: Oct 05, 2006
Posts: 15

PostPosted: Sat Oct 07, 2006 2:24 pm Reply with quote

never seen any link with sid, though.
But what I see on my page on Google, its address has &NSNST_Flood=xxx...xxx
I suspect this is sentinel protecting from dos. But I'm wondering, if googlebot is receiving address with NSNST..., would it be converted? This pattern is not coded anywhere Sad
Sorry, if this is a silly question Embarassed

_________________
www dot funandsafedriving dot com - My safe driving site 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Oct 08, 2006 8:55 am Reply with quote

Unfortunately that is because of NukeSentinel's flood blocker as you have mentioned. There really isn't anything from a "tap" standpoint that you or I can do about that. I don't think it will be an issue. The author of NS needs to get that session off of the GET string.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Misha
Newbie
Newbie



Joined: Oct 05, 2006
Posts: 15

PostPosted: Tue Oct 10, 2006 9:50 pm Reply with quote

Can't we just code it like "sid="?

_________________
www dot funandsafedriving dot com - My safe driving site 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Oct 11, 2006 12:20 am Reply with quote

I don't think you really want to do that. That would mean having this on each and every urlin array value as an "OR" condition. It would slow down the tapping. Besides, are you using NukeSentinel 2.5.02? You should not be seeing those on the URLs any longer from what I can tell from the code.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Misha
Newbie
Newbie



Joined: Oct 05, 2006
Posts: 15

PostPosted: Wed Oct 11, 2006 12:24 am Reply with quote

hmm... my version is saying 2.5.1. Isn't this newer than 2.5.02?

_________________
www dot funandsafedriving dot com - My safe driving site 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Oct 11, 2006 12:31 am Reply with quote

No, the latest is 2.5.02. You are one release level behind (so am I Embarassed )

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch