Need guidance on if this is even possible with C#. I'm very new.
So I spent all night making a VPN GUI in VS. It used OpenVPN. However I'm wanting to share it with my community, but not give them direct access to the .ovpn file that it uses so they can't just rip it and use my server for something it wasn't intended for. Is this possible? Where would I even start? Thank you for any help.
10 Replies
Well I the process you are starting uses that file.
Does it always have the same name? If so make the name configurable.
Then you could check if this file exists and if it doesn't you could tell the user it needs that file
Yes, it has the same name. Would it be possible for it to download the westusa file from a server/site on launch, and on exit, it removes it?
Thank you for your response as well.
you can embed it into the output dll, but the user will be able to get a copy easily if they wanted to
generally speaking, if you have something you don't want users to have access to, you need to keep it from them across a HTTP boundary
e.g. the westusa file lives on your server and your app makes HTTP calls to get the essential info from it
if a file gets on a user's machine, they are going to be able to get it one way or another
Note this also assumes openvpn is installed in the specific directory.
I suggest using registry to find where it is installed, that way users can have it anywhere on disk.
thanks for the suggestions, i'll definitely be looking into how they're done and if it'd truly benefit me 😄
So far, I've gotten this. I can make a button download this specific thing in particular. However, it makes you name it, and choose the path to save it to. Is there a way I could pre-define what both of those are? name and path? perhaps the path where the program was ran in?
If there's a resource/document website on this type of situation, i'd love to read through it and learn. Just asking assistance from you guys since I've looked for a good hour and haven't found anything specifically to fix my situation.
the api is a download?
was just a text message to know if something worked, LOL. I figured it out, though!
I used chat.openai. they are a freaking life saver. helped me learn what I did wrong too!