i would like to ask something.It is possible to make FTP accounts if you have a RTMP server because if you can't the RTMP server is not a solution. Thee reason is that you can not have multiserver feature.
A good way for the file protection is this ( i found this at a online geme site )
Built-in Anti-Hotlinking / Hotlink Protection :: Over the past months the act of hotlinking games has been a growing concern for online arcade owners and we made it one of our top priorities to come up with a powerful solution. Tested in IE 6.0-7.0, FireFox and even Netscape, the built-in hotlink protection module has done its job. When activated, instead of displaying the actual filename of the game being played, phpAS will display a uniquely generated name each time the game is loaded, thus not allowing hotlinkers to link to your game files.
Their PHP code to protect the swf file
Code:
<?php
session_start();)
error_reporting(0);
$code = $_GET['code'];
if ($code != $_SESSION['playcode'])
exit;
include ("./includes/config.php");
$gameid = $_GET['gameid'];
$sql_query = "SELECT * FROM games WHERE gameid = $gameid";
//store the SQL query in the result variable
$result = mysql_query($sql_query);
if(mysql_num_rows($result))
{
//output as long as there are still available fields
while($row = mysql_fetch_array($result))
{
$gamefile = $row['gamefile'];
$gamelocation = $row['gamelocation'];
}
}
if ($gamelocation == 1)
$gameurl = $gamefile;
else
$gameurl = "./games/files/".$gamefile;
$file_extension = strtolower(substr(strrchr($gamefile,"."),1));
switch ($file_extension) {
case "swf": $ctype="application/x-shockwave-flash"; break;
case "wmv": $ctype="application/x-mplayer2"; break;
default: $ctype="application/force-download";
}
header("Content-Type: $ctype");
echo file_get_contents($gameurl);
$_SESSION['playcode'] = "gameover";
?>
A demo protected game is here. http://www.247arcade.com/games/970/w...sion-mode.html
Bookmarks