How do I protect my client

GetRekt

Member
Aug 1, 2014
75
5
How do I make it so no one can take my habbo.swf and use it? make it so it can only be used on HOTELURL.com
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
You can limit who can access it so people can't flat out download it, but in the end if someone really wants it they can get ahold of it.
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
Original code posted by Vrop93 on a forum-that-i-shall-not-name, so don't give me credit for it.

Make a PHP file in your habbo.swf directory with this inside;
Code:
<?php
/* System created by Vrop93 ;)
*/
session_start();

$client["fdata"] = "furnidata.txt";
$client["pdata"] = "productdata.txt";
$client["vars"] = "external_variables.txt";
$client["txts"] = "external_flash_texts.txt";
$client["swf"] = "Habbo.swf";

$vllb = $_GET['external'];
switch($vllb)
{
case "txt":
include($client["txts"]);
return;
case "var":
include($client["vars"]);
return;
case "product":
include($client["pdata"]);
return;
case "furni":
include($client["fdata"]);
return;
case "swf":
readfile($client["swf"]); // Thanks Joopie ;)
return;
}
?>

Now make a .htaccess file with this;
Code:
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_REFERER} !/client\.php [NC]
RewriteRule \.(php)$ - [F,L]
RewriteCond %{HTTP_REFERER} !/swfs/externals\.php [NC]
RewriteRule \.(swf|txt)$ - [F,L]


You rename your files to something else, people won't be able to see the folder so as long as they can't guess /habbo.swf you should be good from direct download.
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
Oh, don't know how to do that.

I imagine its a kill message IF domain doesen't = the one defined, but even then that should be easilly editable if you know what you are doing.
 

Users who are viewing this thread

Top