Hey, so, i want to stop people ripping my furniture 'cause im in development at the moment, so how do i make it so like Habmoon, the furnidata is internal or something? (basically people cant use it to rip)
Printable View
Hey, so, i want to stop people ripping my furniture 'cause im in development at the moment, so how do i make it so like Habmoon, the furnidata is internal or something? (basically people cant use it to rip)
What do you mean... Mind linking me to HabMoons hotel so I know what you're talking about?
Why don't you ask him yourself? :D
Use it in a PHP file and do something with IP, use .htaccess to remove the .php and well done.
John, try put this at the top of the files you wanna hide:
<?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
If not work try: without <?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
Might try your ideas out x]
This might work,
as its on the top of your config, which is also hidden.
so yeah try that
Code:<?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
If not work try: without <?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
Take this on the bottom of the page also, ?>
You really like wannabeeing Disguised :D
Sweet, thanks for all de help :)
Right, i dont get it.
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
i use .txt files for my furnidata and shit?
I believe Habbo.swf sends a referrer. Make a script to check if your furnidata/texts etc.. is being refereed from Habbo.swf.
This ^
Or when a user loads up the client page
Set some sessions like
And on your "furnidata/texts" put:PHP Code:$_SESSION['externals']['furnidata'] = true;
And at last.PHP Code:if (!isset($_SESSION['externals']['furnidata'])) exit;
Rename your file with an php extention. Or tell in the .htaccess to execute a .txt file as php and you're done :)
I just check my cache folder for peoples files. Cant ever hide anything if you can decompile and navigate your own pc.
Add this to the top of the page. It'll block all direct traffic (from a browser) only allowing Habbo.swf to get the vars. At least this is how I do it and none of my users having trouble.PHP Code:if($_SERVER["HTTP_ACCEPT"] != '*/*') {
die("U from sulake bro?");
}
I think its rather obvious that hes made them in PHP, all you do is add include global.php and do a PHP if else statement
UberCMS example;
<?php
if (!LOGGED_IN) {
echo "Fuck off Ripper";
} else
{
echo "Texts Here?";
}
?>
You serious?Quote:
if($_SERVER["HTTP_ACCEPT"] != '*/*') {
die("U from sulake bro?");
}
I don't post non-serious things.
Infact I should ask you "Are you serious?" beacuse you clearly diden't understand this question.
He asked for a script that blocked direct access to his external files. Not a script that blocks access for people that are NOT logged in
Spoiler:
Now for the SERIOUS part.
This is what I'm using in my cms
^This is just an example in my own cms with a report if someone gets blocked out/trying to access to directly.Code:<?php
if($_SERVER["HTTP_ACCEPT"] != '*/*') {
ob_start();
var_dump($_SERVER);
$server = ob_get_clean();
$core->ReportError('blockedexternalaccess' . time() . '.txt', $server, 'NOTICE');
die("U from sulake?");
}
$core->require_login();
define('IGNORE_EXECUTEMSG', true);
header("Content-Type: text/plain;charset=UTF-8");
echo $core->GetCache('external_variables.txt');
?>
Something like this will probly work for you.
Code:<?php
if($_SERVER["HTTP_ACCEPT"] != '*/*') {
die("U from sulake?");
}
header("Content-Type: text/plain;charset=UTF-8");
echo file_get_contents('%path_to_your_external_variables%');
?>
The fact is, I'm sure the users have to view these things or they won't work :S
So for that I don't believe your script.