Documentation Source Text

Check-in [101a84e46c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Comment out the line in althttpd that disallows the msnbot. We are going to give Bing a second chance....
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 101a84e46c93379b9c20d775148cf9b97bab103b
User & Date: drh 2009-12-11 14:20:30
Context
2009-12-11
14:46
Change fts3.html to present the new INSERT syntax used to optimize the full-text index. check-in: f6c99b3cc3 user: dan tags: trunk
14:20
Comment out the line in althttpd that disallows the msnbot. We are going to give Bing a second chance.... check-in: 101a84e46c user: drh tags: trunk
2009-12-10
20:28
Enhance the requirements matrix generator to report duplicate text requirements. check-in: b6c54837b9 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to misc/althttpd.c.

131
132
133
134
135
136
137

138
139
140

141
142
143
144
145
146
147
static void FixupUserAgent(void){
  int i;
  if( zAgent==0 || zAgent[0]==0 ) zAgent = "*";
  for(i=0; zAgent[i]; i++){
    int c = zAgent[i];
    if( c<'!' || c>'~'  ){ zAgent[i] = '_'; }
  }

  if( strncmp(zAgent,"msnbot",6)==0 ){
    exit(0);
  }

  for(i=0; zAgent[i]; i++){
    if( zAgent[i]=='W' && strncmp(&zAgent[i],"Windows_9",9)==0 ){
      exit(0);
    }
  }
}








>



>







131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
static void FixupUserAgent(void){
  int i;
  if( zAgent==0 || zAgent[0]==0 ) zAgent = "*";
  for(i=0; zAgent[i]; i++){
    int c = zAgent[i];
    if( c<'!' || c>'~'  ){ zAgent[i] = '_'; }
  }
#if 0
  if( strncmp(zAgent,"msnbot",6)==0 ){
    exit(0);
  }
#endif
  for(i=0; zAgent[i]; i++){
    if( zAgent[i]=='W' && strncmp(&zAgent[i],"Windows_9",9)==0 ){
      exit(0);
    }
  }
}