Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
Matthew
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
PHP Code:
$_SESSION['externals']['furnidata'] = true;
And on your "furnidata/texts" put:
PHP Code:
if (!isset($_SESSION['externals']['furnidata'])) exit;
And at last.
Rename your file with an php extention. Or tell in the .htaccess to execute a .txt file as php and you're done :)
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
Matthew
I believe Habbo.swf sends a referrer. Make a script to check if your furnidata/texts etc.. is being refereed from Habbo.swf.
Right, i dont understand you.
Quote:
Originally Posted by
joopie
This ^
Or when a user loads up the client page
Set some sessions like
PHP Code:
$_SESSION['externals']['furnidata'] = true;
And on your "furnidata/texts" put:
PHP Code:
if (!isset($_SESSION['externals']['furnidata'])) exit;
And at last.
Rename your file with an php extention. Or tell in the .htaccess to execute a .txt file as php and you're done :)
Dont work x[
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
JohnHearfield
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?
Just add it on top of the text file.
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
Disguised
Just add it on top of the text file.
I did.
im gonna try Matthews SWF furnidata thing x]
Re: Hiding Externals, Furnidata
I just check my cache folder for peoples files. Cant ever hide anything if you can decompile and navigate your own pc.
Re: Hiding Externals, Furnidata
PHP Code:
if($_SERVER["HTTP_ACCEPT"] != '*/*') {
die("U from sulake bro?");
}
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.
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
HickDead
PHP Code:
if($_SERVER["HTTP_ACCEPT"] != '*/*') {
die("U from sulake bro?");
}
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.
Lol, what page?
Re: Hiding Externals, Furnidata
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?";
}
?>
Quote:
if($_SERVER["HTTP_ACCEPT"] != '*/*') {
die("U from sulake bro?");
}
You serious?
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
ImJoeYz
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?
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
Now for the SERIOUS part.
This is what I'm using in my cms
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');
?>
^This is just an example in my own cms with a report if someone gets blocked out/trying to access to directly.
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%');
?>
Re: Hiding Externals, Furnidata
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.
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
ImJoeYz
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.
You do realize Habbo.swf calls the external files itself? NOT with the visitors web browser. Tested this on a hotel with 1200 stable user base so yeah, pretty sure this work.
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
ImJoeYz
Bullshit mate, honestly. your a fking joke.
Did you even tested the script mate? Or don't you know how to mate?
And theres no need to call me a fking joke. You'll just earn yourself a warning/infration mate.
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
HickDead
Did you even tested the script mate? Or don't you know how to mate?
And theres no need to call me a fking joke. You'll just earn yourself a warning/infration mate.
For speaking the truth? Blahhhhh & If this script works URL to the hotel thats using it.
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
ImJoeYz
For speaking the truth? Blahhhhh & If this script works URL to the hotel thats using it.
None of your biz mate, you can test out the script on your own revcms hotel.
Re: Hiding Externals, Furnidata
Quote:
Originally Posted by
HickDead
None of your biz mate, you can test out the script on your own revcms hotel.
Right, think my previous post is valid.