Author |
Message |
Isaiah
Hangin' Around

Joined: Nov 09, 2004
Posts: 32
|
Posted:
Tue Jun 27, 2006 5:13 am |
|
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Tue Jun 27, 2006 5:57 am |
|
Are you running ravennuke? |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
 |
 |
Isaiah

|
Posted:
Tue Jun 27, 2006 6:08 am |
|
|
|
 |
gregexp

|
Posted:
Tue Jun 27, 2006 6:25 am |
|
Ok, I was just asking to find out if this was in the right forum or not. |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Tue Jun 27, 2006 6:29 am |
|
well that doesnt help much darklord... |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Tue Jun 27, 2006 6:43 am |
|
I seem to remember this happening to me. I couldn't figure out what was causing it and it only seemed to happen on my computer, but I wasn't using GoogleTap.
Does it do it on other computers?
I managed to fix it somehow, but I can't remember how I did it. Have you tried clearing out your Cookies and History etc.? |
|
|
|
 |
Isaiah

|
Posted:
Tue Jun 27, 2006 6:48 am |
|
Hi Jakec,
Yes, i clean everything, it happens to all users,
i think it has to do something with the user sessions or the append sid function.
I tried to edit a lot of nuke files to find the &sid reference,
but didn't found anything... |
|
|
|
 |
hitwalker

|
Posted:
Tue Jun 27, 2006 6:49 am |
|
yeah its caused by googletap but ive seen/read a few "solutions" but its very unclear whitch one works..
for some this works but is based on phpbb standalone....
Find the the function append_sid and replace it with:
in Sessions.php
Code:
function append_sid($url, $non_html_amp = false)
{
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) && !stristr( $_SERVER["HTTP_USER_AGENT"] ,'bot') && !stristr($_SERVER["HTTP_USER_AGENT"] ,'inktomi'))
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID ;
}
return $url;
}
|
i haven't tried it... |
|
|
|
 |
Isaiah

|
Posted:
Tue Jun 27, 2006 6:51 am |
|
hitwalker wrote: | yeah its caused by googletap but ive seen/read a few "solutions" but its very unclear whitch one works..
for some this works but is based on phpbb standalone....
Find the the function append_sid and replace it with:
in Sessions.php
Code:
function append_sid($url, $non_html_amp = false)
{
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) && !stristr( $_SERVER["HTTP_USER_AGENT"] ,'bot') && !stristr($_SERVER["HTTP_USER_AGENT"] ,'inktomi'))
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID ;
}
return $url;
}
|
i haven't tried it... |
Thanks hitwalker,
but to which file is this function? |
|
|
|
 |
hitwalker

|
Posted:
Tue Jun 27, 2006 6:53 am |
|
in Sessions.php
BACKUP WHATEVER YOUR GONNA DO  |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Jun 27, 2006 6:55 am |
|
The original instructions for GT-NExtGEn have the edits to make to sessions.php in them to stop this, for most search engines.
Is this happening only when you are browsing the forums as anonymous or when you are actually logged in, or both? |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Isaiah

|
Posted:
Tue Jun 27, 2006 7:03 am |
|
Actually i made the forum only for registered users.
Anyway,
This one method Hitwalker wrote didn't worked,
but i removed this :
if ($userdata['user_level'] > 1) {
if ( !empty($SID) && !eregi('sid=', $url) )
{
if ( !empty($SID) && !eregi('sid=', $url) ) {
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
}
}
From my sessions.php file and the problem has been solved. |
|
|
|
 |
montego

|
Posted:
Tue Jun 27, 2006 7:05 am |
|
Well, I am no phpBB expert, so cannot tell you what the impact of doing that is... Hopefully none. |
|
|
|
 |
hitwalker

|
Posted:
Tue Jun 27, 2006 7:10 am |
|
im surely not gonna recommend thats the right way...
but after editing the sessions.php as written in the gt file i end up with ..
Parse error: syntax error, unexpected $end in /home/public_html/includes/sessions.php on line 965
but weird cause thats the php closing tag.. |
|
|
|
 |
hitwalker

|
Posted:
Tue Jun 27, 2006 7:32 am |
|
i tried a few so called solutions but non of them work,and yes Isaiah...taking out the few lines you posted does indeed solve the problem but uncertain is what the effect would be in general.. |
|
|
|
 |
Isaiah

|
Posted:
Tue Jun 27, 2006 7:39 am |
|
Yes, correct.
I will leave it like this for now,
let's hope that there will not be any problem.
Thanks for driving me to edit the correct file! |
|
|
|
 |
hitwalker

|
Posted:
Tue Jun 27, 2006 7:56 am |
|
no prob...
but member susann spend a lot of time diggin into this problem so i send a pm to her..
see what she found ... |
|
|
|
 |
gregexp

|
Posted:
Tue Jun 27, 2006 8:30 am |
|
if ($userdata['user_level'] > 1) {
if ( !empty($SID) && !eregi('sid=', $url) )
{
if ( !empty($SID) && !eregi('sid=', $url) ) {
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
}
}
if im reading this correctly, this is the problem, what it seems to do is add the sid part into the url and direct u to the correct post, It seems to strip or verify that it is the correct url.
I dont know enough about the coding to change it to verify that it the url is correct with googletap installed.
Hopefully this is not a security issue.
Hitwalker, I asked because it didnt seem to be directly caused by a ravennuke code and I searched for a solution as I'm sure others did and could find a lot of responses but could offer no solution as it seems that I could not find one that was definitley as solution, so instead of running in circles, I stopped there and was trying to allow someone with more knowledge on this issue to post with somethin more valuable then a list of possible solutions.
Glad you and the others were able to help. |
|
|
|
 |
Susann
Moderator

Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Tue Jun 27, 2006 10:47 am |
|
|
|
 |
hitwalker

|
Posted:
Tue Jun 27, 2006 3:37 pm |
|
well its not that clear susann...
as far as i could find out everybody agrees on one thing....
the sid su..s and can realy harm your site...
so question is,any valid way know to remove it... |
|
|
|
 |
Susann

|
Posted:
Tue Jun 27, 2006 4:10 pm |
|
Sure, but you better ask Raven, djmaze or Montego and it´s a difference to remove the sids or just mask them for bots.
I haven´t tried this because my Raven Nuke website isn´t google tapped. |
Last edited by Susann on Tue Jun 27, 2006 4:18 pm; edited 1 time in total |
|
|
 |
hitwalker

|
Posted:
Tue Jun 27, 2006 4:16 pm |
|
well i doubt if anyone knows it ....
otherwise we would have a clear answer to it....lol |
|
|
|
 |
montego

|
Posted:
Tue Jun 27, 2006 8:50 pm |
|
Yeah, I don't know for certain either. I have worked into the RN2.10.00 release a "ShortLinks" type code based mostly off the GT-NExtGEn concept, but really struggled with the sessions.php code they provided. I think that portion will need some follow-on work.
I'll get to it eventually, but I just did not get the feeling like it was still an issue with the later phpBB versions. Like I said, more research is forthcoming, but not quickly... |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 28, 2006 3:56 am |
|
i dont mind waiting,but im curious to know if there's realy a negative thing about removing the few lines like Isaiah did .... |
|
|
|
 |
montego

|
Posted:
Wed Jun 28, 2006 5:59 am |
|
Without serious testing, I dont know either. phpBB to me is a "tangled web" that needs to be "unraveled" before I can feel confident in anything I say about the sid. Sorry. |
|
|
|
 |
|