![]() |
Content based by IP
I'm looking to play a trick on my friend because he is Head of Security, I'd like this hacked page that I made in HTML to display, only to him because of his IP.
So far I have this code, and I'd like to insert it into index.php so it'd affect the main page.. any clues where to go next? $userip = 'the IP of the person'; if ($_SERVER['REMOTE_ADDR'] == $userip OR $_SERVER['HTTML_CLIENT_IP'] == $userip) { // this is the person's IP address, so go ahead and do what you want } else { // this is not the person's IP, so do the normal thing } Thanks to daemon at vbulletin.com for giving me the above code, and he reccomended to get further help here. Thanks in advance. |
PHP Code:
|
You guys are mean, but clever.
|
oh yea tomorrow is april 1st
|
Thank you very much.. it worked out great. :)
|
All times are GMT. The time now is 06:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|