View Full Version: Your Own Textfile As Update Source

abelhadigital > HostsMan > Your Own Textfile As Update Source



Title: Your Own Textfile As Update Source
Description: Manage Update Sources


Julien - March 20, 2008 11:05 PM (GMT)
Hi,

Thanks for this great tool, but there is a small glitch in the update function.
I have added my own textfile as an update-source, containing lines like :

CODE
127.0.0.1 badsite1.com
127.0.0.1  badsite2.com
127.0.0.1  malwaresite3.net
127.0.0.1  spammer.com


When I add it to the update sources to use, and I do a first update, everything is good, it adds the sites from my textfile to the HOSTS.

Unfortunatelly, If I later add some more sites to it, and I restart Hostsman, and do another update, Hostsman says it has updated succesfully but the newly added sites from my textfile are NOT added to the HOSTS file.

Please, can someone look into this ?

Thanks a lot !


Julien. :)

rloureiro - March 21, 2008 10:48 AM (GMT)
Did you use the search in HostsMan Editor to look for the new items?

Julien - March 21, 2008 12:35 PM (GMT)
Of course I did, how else should I know I didn't add the new items ? :rolleyes:

jbob - March 21, 2008 02:51 PM (GMT)
I just tried what you are seeing with this issue and was not able to duplicate. I have a text document on my desktop where I add my own Hosts file update. I have that file added to the list of updates along with the MVPS one. I add specific comments to my additions making it easier to find them. I added one new fake entry to test what you are seeing but it adds the entry for me.

The difference may have something to do with closing Hostsman. I don't close mine to do this procedure. I open the text document, add an entry, save it then ask Hostsman to update again. It notifies it has found a new entry in my file and asks if it should keep updating. When update it complete sure enough the new entry is in my Hosts file as displayed by the Hostsman editor.

I do find that if there is a duplicate entry it won't be added. Also the format has to be correct. Maybe I need to see if I can duplicate with multiple new entries.

rloureiro - March 21, 2008 05:13 PM (GMT)
I couldn't replicate this issue either. I tried with multiple items, some new, some with errors and in both "Merge" and "Overwrite" modes and the new items (with no errors) were always added to hosts file, even when I closed HostsMan before doing the update.

jbob already identified two situations where entries aren't added: 1) if the host name is already present, or 2) if the entry has errors.

If an explanation for this issue isn't found then next week I'll take a look at the code.

Julien - April 26, 2008 04:34 PM (GMT)
Please disregard this bugreport,

I somehow managed to forget to include the 127.0.0.1 part in the own update source.

Everything works correctly now, tread can be closed,
but please take a look at my last bugreport :)




Hosted for free by InvisionFree