Choose fontsize:
Welcome, Guest. Please login or register.
Did you miss your activation email?

 

Pages: [1]   Go Down
  Print  
Author Topic: Get Passed Some Proxies!  (Read 11522 times)
0 Members and 1 Guest are viewing this topic.
Member
*

Karma: 3
Gender: Male
Posts: 151


View Profile WWW
« on: February 16, 2006, 01:08:07 AM »
[h1]Get Passed Some Proxies![/h1]Today, we will be making a code that displays the real IP of the user, because it can get past proxies! So let's just jump right into it, again this is a very short script. Remember, comments are talking about the code ABOVE.

Code:
<?php
//This of course tells the website that what follows
$realip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
//This may seem a little confusing, but for the most part you don't need to learn this, unless of course you want to make PHP scripts that have to do with IPs. But at the
//beginning, notice $realip = blah blah, well the money sign means that what follows is a variable, a variable can be anything depending on what you set it to, and can be
//different depending on who is viewing the script, in this case it says that the variable $realip should be set to the user's real IP, which is what all that code means after
//$realip =.
$_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
//This code simply means if there is no proxy, then real IP should be set to the normal way of getting a IP, (which was used in my last tut).
echo 'Haha, you trying to trick me with your proxy? Your <i>real</i> IP is '.$realip;
//Again, we have echo, which is what is returned from the script, and the 'Haha, you trying...' part is what the text will say, and then after IP is, there is another ', which
//means that the following part should not be plain text, but whatever the variable is. Also, you see a period right before the variable, which is very important, because it's
//telling the PHP to include the variable in the echo, then we have ; which of course ends the line.
?>


Then the last line of code simply means that is the end of the code. If you have any questions just post 'em here. Here is the code w/o the comments.
Code:
<?php
$realip 
= isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
$_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
echo 
'Haha, you trying to trick me with your proxy? Your <i>real</i> IP is '.$realip;
?>


Click here to see this script in action!

If you like this tutorial, please click here to register.

Click the link below to download the PHP file for this tutorial.
Get Passed Proxies! PHP
« Last Edit: March 05, 2006, 06:55:14 PM by Capt. Obvious » Logged
Graphic Moderator
*

Karma: 16
Gender: Male
Posts: 2,181

...


View Profile WWW
« Reply #1 on: February 16, 2006, 02:22:39 AM »
i dont have a clue what it says but would be very useful to the admin of forums to stop people getting past IP ban. good job
« Last Edit: February 16, 2006, 03:50:42 AM by SKETCHi » Logged
Member
*

Karma: 2
Gender: Male
Posts: 138



View Profile WWW
« Reply #2 on: February 16, 2006, 03:48:04 AM »
I don't think anybody has gotten pass the admin bann. I may be wrong. But I use the same forums, and nobody has ever gotten past it.
« Last Edit: February 16, 2006, 03:50:55 AM by SKETCHi » Logged
Graphic Moderator
*

Karma: 16
Gender: Male
Posts: 2,181

...


View Profile WWW
« Reply #3 on: February 17, 2006, 12:37:05 AM »
on a forum i have been on many of the people there have known how to get past IP ban but they werent allowed to say so all the people that were banned or will be cant get past it
Logged
Newbie
*

Karma: 0
Posts: 1

Graphic Addicts Member


View Profile
« Reply #4 on: March 04, 2006, 03:09:43 AM »
doesn't work, I have tried it.
Go to http://www.hidemyass.com and use the proxy there
Logged
Member
*

Karma: 3
Gender: Male
Posts: 151


View Profile WWW
« Reply #5 on: March 05, 2006, 06:54:39 PM »
doesn't work, I have tried it.
Go to http://www.hidemyass.com and use the proxy there

That's because PHP is sort of outdated, people have found ways around it. I guess I should rename it to "Get Passed Some Proxies".
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:      

MickM [ In: 2403 // Out: 2118 ] Flawsome [ In: 446 // Out: 1726 ] Pixel-Designz [ In: 1183 // Out: 2917 ] SMF Topsites [ In: 0 // Out: 2021 ] Graphic Addicts Topsites [ In: 2435 // Out: 3389 ] Cosmo Designs [ In: 1151 // Out: 1621 ] Dr. Photoshop [ In: 1301 // Out: 1634 ] Xtreme-Pixel [ In: 118 // Out: 1640 ]
Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Phobos design by Bloc | XHTML | CSS


Google visited last this page Today at 06:31:46 AM