Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | e6b47e029036df394a760fd41ab7ad0921a9fd5b |
|---|---|
| Date: | 2012-11-10 12:23:34 |
| User: | drh |
| Comment: | Disallow the "Download Master" user agent in althttpd.c. |
Tags And Properties
- branch=trunk inherited from [b2e03e19ab]
- sym-trunk inherited from [b2e03e19ab]
Changes
Changes to misc/althttpd.c
165 if( strncmp(zAgent,"msnbot",6)==0 ){ 165 if( strncmp(zAgent,"msnbot",6)==0 ){ 166 exit(0); 166 exit(0); 167 } 167 } 168 #endif 168 #endif 169 for(i=0; zAgent[i]; i++){ 169 for(i=0; zAgent[i]; i++){ 170 if( zAgent[i]=='W' && strncmp(&zAgent[i],"Windows_9",9)==0 ){ 170 if( zAgent[i]=='W' && strncmp(&zAgent[i],"Windows_9",9)==0 ){ 171 exit(0); 171 exit(0); > 172 } > 173 if( zAgent[i]=='D' && strncmp(&zAgent[i],"Download_Master",15)==0 ){ > 174 exit(0); 172 } 175 } 173 } 176 } 174 } 177 } 175 178 176 /* 179 /* 177 ** Make an entry in the log file. If the HTTP connection should be 180 ** Make an entry in the log file. If the HTTP connection should be 178 ** closed, then terminate this process. Otherwise return. 181 ** closed, then terminate this process. Otherwise return.