 |
|
02-17-2004, 10:45 AM
|
#1 (permalink)
|
|
Inactive
Join Date: 10-25-03
Posts: 79
Latest Blog: None
|
Need to remove phpbb 2.06 session cookie
Hi guys i've just added another forum phpBB 2.0.6 to my site and would love to remove the session cookies that it can be crawled, what files should I access and what commands should I use to do this?
|
|
|
02-17-2004, 11:16 AM
|
#2 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,521
|
[code:1:f06ae1624f]#-----[ OPEN ]------------------------------------------
includes/sessions.php
#-----[ FIND ]------------------------------------------
global $SID;
if ( !empty($SID) && !eregi('sid=', $url) )
#-----[ REPLACE WITH ]------------------------------------------
global $SID, $HTTP_SERVER_VARS;
if ( !empty($SID) && !eregi('sid=', $url) && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp@inktomi.com;'))[/code:1:f06ae1624f]
|
|
|
02-17-2004, 11:21 AM
|
#3 (permalink)
|
|
Inactive
Join Date: 10-25-03
Posts: 79
Latest Blog: None
|
Wonderful  .
|
|
|
02-17-2004, 12:04 PM
|
#4 (permalink)
|
|
Inactive
Join Date: 10-13-03
Posts: 7,481
Latest Blog: None
|
What does that code do, JS? Is it the one that makes the forum much more crawable?
|
|
|
02-17-2004, 01:43 PM
|
#5 (permalink)
|
|
Inactive
Join Date: 10-26-03
Posts: 2,466
Latest Blog: None
|
Sessions IDs stop crawlers dead. The code takes out session IDs when the user-agent is Google or Inktomi, to allow them to continue crawling.
|
|
|
02-17-2004, 02:03 PM
|
#6 (permalink)
|
|
Inactive
Join Date: 10-13-03
Posts: 7,481
Latest Blog: None
|
Cool. Whats the mod to make all the forum pages html?
|
|
|
02-17-2004, 05:37 PM
|
#7 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,521
|
Quote:
|
Originally Posted by unrealfragmaster
Cool. Whats the mod to make all the forum pages html?
|
That's top secret. I'll tell you for $1M.
|
|
|
02-18-2004, 12:40 AM
|
#8 (permalink)
|
|
Inactive
Join Date: 10-13-03
Location: England
Posts: 2,781
Latest Blog: None
|
I'll tell you for $999999
|
|
|
06-04-2004, 05:05 AM
|
#9 (permalink)
|
|
Potato Monster
Join Date: 03-26-04
Location: Chester, England
Posts: 3,874
|
Its called mod_rewrite
Ill tell you for free because I am a spoil sport 
__________________
I have become death, destroyer of worlds.
|
|
|
06-05-2004, 05:29 AM
|
#10 (permalink)
|
|
Inactive
Join Date: 06-05-04
Posts: 177
Latest Blog: None
|
is there a php bb hacking community like there is for vbulletin?
|
|
|
06-05-2004, 02:20 PM
|
#11 (permalink)
|
|
v7n Mentor
Join Date: 03-04-04
Location: Whycocomagh, Nova Scotia
Posts: 4,763
|
|
|
|
06-06-2004, 12:09 AM
|
#12 (permalink)
|
|
Inactive
Join Date: 06-05-04
Posts: 177
Latest Blog: None
|
ah, thanks 
|
|
|
06-06-2004, 02:17 PM
|
#13 (permalink)
|
|
v7n Mentor
Join Date: 03-04-04
Location: Whycocomagh, Nova Scotia
Posts: 4,763
|
They're very quick and helpful, too... even for general phpbb questions...
|
|
|
06-07-2004, 12:30 PM
|
#14 (permalink)
|
|
Inactive
Join Date: 06-07-04
Posts: 13
Latest Blog: None
|
thanks also
|
|
|
07-10-2004, 07:04 AM
|
#15 (permalink)
|
|
Moderator
Join Date: 04-25-04
Posts: 1,321
|
So it should look like this:
[code:1:03c22876f5]function append_sid($url, $non_html_amp = false)
{
global $SID, $HTTP_SERVER_VARS;
if ( !empty($SID) && !eregi('sid=', $url) && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp@inktomi.com;'))
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;[/code:1:03c22876f5]
right?
|
|
|
07-10-2004, 07:08 AM
|
#16 (permalink)
|
|
Inactive
Join Date: 10-20-03
Location: United Kingdom, London
Posts: 2,207
Latest Blog: None
|
Quote:
|
Originally Posted by disgust
is there a php bb hacking community like there is for vbulletin?
|
NO guys, you didn't understand what he meant!
Answer: Yes, I'm currently working on a hacking community to hack phpbb forums .. if your interested let me know
(Jus kdn  )
|
|
|
07-10-2004, 01:43 PM
|
#17 (permalink)
|
|
Inactive
Join Date: 06-05-04
Posts: 177
Latest Blog: None
|
|
|
|
07-26-2004, 10:02 AM
|
#18 (permalink)
|
|
Moderator
Join Date: 04-25-04
Posts: 1,321
|
So I've removed the session IDs for Google and Slurp. How about other bots. I've been getting some traffice from MSN and Ask Jeeves, for example...
|
|
|
07-26-2004, 10:11 AM
|
#19 (permalink)
|
|
Contributing Member
Join Date: 07-09-04
Posts: 203
Latest Blog: None
|
I would look for phpbotsmod. Really cool mod for this purpose. Do a google search or search on www.phpbb.com. If you need help, let me know.
|
|
|
07-26-2004, 01:02 PM
|
#20 (permalink)
|
|
Inactive
Join Date: 05-13-04
Location: PA
Posts: 145
Latest Blog: None
|
Do these mods only apply to forums? What about an ecommerce site that has log ins an a shopping cart? Would it be the same or something different?
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| |