Documentation Source Text

Check-in [e6b47e0290]
Login

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

Overview
Comment:Disallow the "Download Master" user agent in althttpd.c.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e6b47e029036df394a760fd41ab7ad0921a9fd5b
User & Date: drh 2012-11-10 12:23:34.268
Context
2012-11-10
12:38
Change the way that user-agent restrictions are handled in althttpd.c. (check-in: 8d5d89e6db user: drh tags: trunk)
12:23
Disallow the "Download Master" user agent in althttpd.c. (check-in: e6b47e0290 user: drh tags: trunk)
2012-10-30
21:12
Updates to the change log. (check-in: 90a87f71d6 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to misc/althttpd.c.
165
166
167
168
169
170
171



172
173
174
175
176
177
178
  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);



    }
  }
}

/*
** Make an entry in the log file.  If the HTTP connection should be
** closed, then terminate this process.  Otherwise return.







>
>
>







165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
  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);
    }
    if( zAgent[i]=='D' && strncmp(&zAgent[i],"Download_Master",15)==0 ){
      exit(0);
    }
  }
}

/*
** Make an entry in the log file.  If the HTTP connection should be
** closed, then terminate this process.  Otherwise return.