mirror of
https://github.com/minoplhy/filters-maker.git
synced 2024-12-22 18:18:13 +00:00
Open and End
This commit is contained in:
parent
97c78dcb4c
commit
6c3ee34e8e
@ -52,7 +52,7 @@ def IP_URL_FILTERING(filters_welcome):
|
||||
file[i] = re.sub(':(\d\d\d\d\d|\d\d\d\d|\d\d\d|\d\d|\d)', '', file[i])
|
||||
file[i] = re.sub('\A'+str(IP4)+'\Z', '', file[i])
|
||||
file[i] = re.sub('\A(\[|)'+str(IP6)+'(\]|)\Z', '', file[i])
|
||||
file[i] = re.sub('\[..*\]', '', file[i])
|
||||
file[i] = re.sub('\A\[..*\]\Z', '', file[i])
|
||||
with open(filters_welcome, 'w') as f1:
|
||||
f1.writelines(["%s\n" % item for item in file])
|
||||
print("Ip Address and Url Path filtering Operation Completed!")
|
||||
|
Loading…
Reference in New Issue
Block a user