i want to add some lines of code , which make it possible , whenever i want my application not work anymore (my application is connecting via internet) so i have idea for this purpose , i could upload a specific file in my host , ie : www.my_dummy_host.com/control_my_app.txt
and then in my source code i could write an control line , that will check if above link exists , continue , if not exists then exit the program. therefore whenever i want to make my app not working (expire) , i could remove that file from my host. my questions are:
1. Does anybody have any better alternative idea?
2. if not (if my idea is best) , how could i implement checking a file in a host with c programming? could u please write me the code?
Thanks in advance