homepage Welcome to WebmasterWorld Guest from 54.205.189.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Hide /mask IP link
Need help to hide/mask a IP
Newbie01




msg:4523860
 12:02 pm on Nov 30, 2012 (gmt 0)

Hello,
I got this problem on hiding a IP link ( ex: http:x.xxx.xxx.x/register.php )How i can hide it? why i am looking a way to hide it... i am doing that because i get ddosed and i need to change the ip way to many times and i need to put my " server" under maint day by day.

From what i heard from others, it looks like there it is a code or script for that... Now i don't know because i am new to this kind of things.

Here is an example of one of the scripts i have, and i need to hide the IP :
( this is the script that alows me to see the members logged in game )


$host = '127.0.0.1';
$dbuser = 'server;
$dbpass = 'server123';
$database = 'PS_GameData';
//Connect to the database
$conn = @odbc_connect("Driver={SQL Server};Server=$host;Database=$database", $dbuser, $dbpass) or die("Database Connection Error!");

// check who's online
$result = @odbc_exec($conn,"SELECT Family FROM Chars WHERE LoginStatus=1",$link);

// initialize veriables
$online = @odbc_num_rows($result);
$human = $elf = $vail = $nordein = 0;

// fill variables with data (who's online)
while($row = @odbc_fetch_array($result))
{
if (@odbc_num_rows($result)==0) return;
switch($row['Family'])
{
case 0: $human++;break;
case 1: $elf++;break;
case 2: $vail++;break;
case 3: $nordein++;break;
};
};

// Print number of online players
print "<table style=\"border: 1px solid black;\">
<tr><td colspan=2>Players online: </td><td>".$online."</td></tr>
<tr><td>Human: </td><td>".$human."</td></tr>
<tr><td>Elf: </td><td>".$elf."</td></tr>
<tr><td>Vail: </td><td>".$vail."</td></tr>
<tr><td>DeathEater: </td><td>".$nordein."</td></tr>
</table>";

@odbc_close($link);

?>




Please anyone can help me?

 

coopster




msg:4537786
 9:26 pm on Jan 20, 2013 (gmt 0)

Welcome to WebmasterWorld, Newbie01.

What IP are you attempting to hide? Or do you mean you are attempting to block access from a certain IP?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved