-
A small stand-alone tool with the following functionality:
- It should download two textfiles. The urls of these textfiles are stored in an INI file.
- The first textfile contains 3 lines. The first to lines are the urls of the textfiles (to keep the INI up-to-date). The third line contains the date of the latest version of the second textfile. This should be compared to a value stored in the ini file to see if the second textfile needs to be downloaded or not.
- The second textfile contains IP ranges just like the file that is currently used by KL does.
- The current file should be replaced by the downloaded file (#2) if there is a newer version. (filename should not change!)
Instead of a stand-alone program, it might be better as a plugin for KL Extensions. It should add a menu item to Options to update the blocklist (or access the GUI of the plugin if it has one).
Extra functionality that could be added after the initial release:
- GUI (with update button, date of current blocklist)
- Option to manually add an IP or IP range. This should be stored in a separate textfile and merged with the blocklist after each update.
-
Check:
http://www.aldostools.com/temp/badipupdater.zip
The file include an example of the client-side ini (updater.ini) and the server-side info file (serverside.txt)
Notice that the date is at the beginning of the file. This allow that future versions include more than the 3 alternative URLs currently supported.
The program also supports the command line parameters:
/quiet = do not show the popup message when the file have been updated
/update = execute the updater inmediately
I have the idea of a user file that could be appended to the updated file. This way, the user can add his/her own IP ranges, without have to worry that the changes would be lost.
Note: if the BannedIPRanges.txt is read-only, it is not modified.
___
Aldo Vargas
http://www.aldostools.com
-
I have tested it.
It says 'no new file found', even though there is a newer one available on the urls that I used.
BannedIpRangesInfo.txt
Code:
2003/7/29
http://kazaalite.tech-critic.com/dl/BannedIpRanges.txt
updater.ini
Code:
[main]
BannedIPFile=C:\Program Files\Kazaa Lite K++\BannedIPs\BannedIpRanges.txt
LastUpdate=2003/6/6
url1=http://kazaalite.tech-critic.com/dl/BannedIpRangesInfo.txt
-
I have fixed the problem. The program was expecting the text file in DOS format, not in Unix format.
Also added the option to auto-append the file UserBannedIpRanges.txt, if it exists in the same path of the updater.
Please download the file from the same URL.
___
Aldo Vargas
http://www.aldostools.com
-
try this one out:
Download Link
Extract the two files to the folder where the bad ip text file is and run the .bat file. norton detects it as a malicious script but all it is trying to do is create a new texte file. iff you are not convinced, rename the files to .txt and read the script.
-
aldo: could you update your program so that it goes to the line after each entry in the bannedipranges.txt file?
-
also could you make it update from this url:
http://www.simply-click.org/uploadertest/p...2_plaintext.asp
the page has doesn't only have the bad ip ranges on it so the updater should be able to filter the necesary data.
-
When I update, That create a BannedIpRanges.txt.bak file?
-
it's a backup of the original bannedipranges.txt file from before the update. rename it back to .txt if you want to restore it.
-