26
26
#include "include/conf.h"
28
int vhexclude(char *excludefile, char *ip)
28
int vhexclude(char *excludefile, char *url)
32
char wip1[1024], wip2[1024];
33
char sn1[4], sn2[4], sn3[4];
34
32
char str[strlen(excludefile)];
33
char wurl[strlen(url)];
34
char wurl2[strlen(url)];
37
37
strcpy(str,excludefile);
38
40
getword(whost,str,' ');
40
while(strcmp(whost,"*FIM*") != 0) {
41
if(strcmp(ip,whost) ==0)
45
getword(sn1,wip1,'.');
46
getword(sn2,wip1,'.');
47
getword(sn3,wip1,'.');
49
sprintf(wip1,"%s.%s.%s.0",sn1,sn2,sn3);
50
sprintf(wip2,"%s.%s.0.0",sn1,sn2);
52
if(strstr(whost,wip1) !=0)
55
if(strstr(whost,wip2) !=0)
42
if(strchr(wurl,':') != 0) {
43
getword(warea,wurl,':');
47
while(strcmp(whost,"*END*") != 0) {
48
if(strcmp(wurl,whost) == 0)
50
if(strchr(whost,'*') != 0) {
51
getword(warea,whost,'.');
52
getword(warea,wurl,'.');
53
if(strcmp(wurl,whost) == 0)
58
56
getword(whost,str,' ');