Little tool to protect your client ip
Hey guys!
I heard some people complaining about they can't remove their client ip out of the client source. I have a quite good solution for you. Eh.. I mean, 2 solutions.
First thing you have to know.
I think you know people can see your client ip by inspect elements or view-source:http:yourhotel.com. For both I have a solution.
Protection view-source
This is not a very simple one. You need to install an ioncube loader. This avoids people can see the source in view-source. Ehm.. they can see the source but it's encrypted. So.. your ip too.
After you installed ioncube successful you need to place this file somewhere in a reachable directory to include.
Add this rule code at the top of your client source:
PHP Code:
include("path to file/html_encoder_1.9.php");
It should encrypt your source now in view-source.
Protection inspect elements
This is the simple one. You need to follow some steps. We're going to work with jQuery. My best friend :D:. (Javascript too)
Download this files and place them in a directory. (Change this link in the script src link!)
Step 1:
Add this into your client between the header tags:
PHP Code:
<script type="text/javascript" src="http://link.com/pathtofile/jQuery/jquery-latest.min.js"></script>
<script type="text/javascript" src="http://link.com/pathtofile/jQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="http://link.com/pathtofile/jQuery/jquery-latest.js"></script>
Step 2:
Add a class called 'information' in a script tag what inside looks like this:
PHP Code:
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var habboReqPath = "";
var BaseUrl = "";
var flashvars = {
"client.starting" : "",
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "1",
"client.hotel_view.show_on_startup" : "1",
"site.url" : "",
"url.prefix" : "",
"client.reload.url" : "",
"client.reload.url" : "",
"client.fatal.error.url" : "",
"client.connection.failed.url" : "",
"connection.info.host" : "",
"connection.info.port" : "",
"external.variables.txt" : "",
"external.texts.txt" : "",
"productdata.load.url" : "",
"furnidata.load.url" : "",
"use.sso.ticket" : "1",
"sso.ticket" : "",
"processlog.enabled" : "1",
"flash.client.url" : "",
"flash.client.origin" : "popup",
};
var params = {
"base" : "",
"allowScriptAccess" : "always",
"menu" : "false"
};
What will look like this:
PHP Code:
<script type="text/javascript" class="information">
Step 3:
Add above '<script type="text/javascript" class="information">' this code:
PHP Code:
<script class="information">
$(document).ready(function(){
$('.information').remove();
});
</script>
What will look like this:
PHP Code:
<script class="information">
$(document).ready(function(){
$('.information').remove();
});
</script>
<script type="text/javascript" class="information">
Step 4:
Enjoying your safe hotel :D
Does this release not work for you? You did something wrong. This is not the help section. I'm not going to answer questions about this release here.
Greets.
p.s. Like if you like :D:
Re: Little tool to protect your client ip
Gonna try this when my VPS gets back online, people keep coming on my hotel " hide your ip " lmfao, thanks for this.
Re: Little tool to protect your client ip
Quote:
Originally Posted by
ParadiseRel
Gonna try this when my VPS gets back online, people keep coming on my hotel " hide your ip " lmfao, thanks for this.
Use cloudflare.
Re: Little tool to protect your client ip
Re: Little tool to protect your client ip
Re: Little tool to protect your client ip
It just keeps reloading the media fire thing. Could you upload on uppit?
Re: Little tool to protect your client ip
not gonna test this but does the inspect element one just remove right click?
Re: Little tool to protect your client ip
Quote:
Originally Posted by
Find
not gonna test this but does the inspect element one just remove right click?
No it also makes your code if someone uses view-source look like a bunch of gibberish. Becomes encrypted.
Re: Little tool to protect your client ip
Works like a charm :love:
Re: Little tool to protect your client ip
Wouldn't encrypting the source disable the ability to inspect elements? If not, pretty good idea with removing the scripts once the page has loaded. :P:
Re: Little tool to protect your client ip
I'm not sure exactly how this works as I have yet to get it working. The download link just refreshes when i click download on media fire on any computer. I will give details on it when I have it working and show a live demo. Thnx :)
Re: Little tool to protect your client ip
Just one thing, should i name it class.information.php or just information? Cuz i removed class. :P:
Re: Little tool to protect your client ip
For phoenix, simply encrypt it in your habbo.swf :)
Re: Little tool to protect your client ip
Not working at all for me. Installed the first part step my step, doesn't work.
Re: Little tool to protect your client ip
You can still packet-sniff though.