Originally Posted by
Toxys
Yes I know there is no 100% security, but not everyone look into the codes, etc... so this minimal security will be ok.
Well I set sv_allowdownload to 0, so the players can download only through http. But since I'm using VPS , my VPS provider can access to the file no matter what I'm doing. So I thinking about I hide a code what I explained before.
How can I read the file contents from external site with fopen? Can you give me an example please?
i think better need use methods outside cod2: php, perl, bash etc -> push result from outside into cod2 through "execute" (libcod)
https://github.com/damage99/libcod/b...r/gsc.cpp#L156
CoD2:
PHP Code:
file_get_contents(url)
{
url = "127.0.1.0/ip.txt"; //?arg
s = execute("php /home/scripts/file_get_contents.php " + url);
//s = execute("/home/scripts/file_get_contents.php " + url)[0]; ???????????
return s;
}
PHP file_get_contents.php:
PHP Code:
<?php
die(file_get_contents($argv[1]));
?>
p.s:
I'm not sure if the VDS provider needs your mod. I'm not at all sure that modern technologies and methods of organizing cloud computing allow them to receive your data (in unencrypted form). I will tell you more, your provider does not even know your password (although it checks it during authorization) - this is how it should be