There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Message to one IP address?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
LuthorCorp's Avatar
Member with 35 posts.
 
Join Date: Sep 2002
Experience: Intermediate
25-Jul-2005, 11:48 AM #1
Is it possible to make test appear for one IP address?
Is it possible to put text on a website/xanga that's viewable only by a specific IP?

Last edited by LuthorCorp : 25-Jul-2005 09:35 PM.
LuthorCorp's Avatar
Member with 35 posts.
 
Join Date: Sep 2002
Experience: Intermediate
28-Jul-2005, 12:11 PM #2
Bump
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
28-Jul-2005, 12:56 PM #3
What is the web site written in??
LuthorCorp's Avatar
Member with 35 posts.
 
Join Date: Sep 2002
Experience: Intermediate
28-Jul-2005, 01:06 PM #4
I'm not sure... it's a xanga (which I know makes this all sound unimportant, but it is.)

I think it's mostly java script
chris105's Avatar
Junior Member with 12 posts.
 
Join Date: Jul 2005
Location: The fiery pits of hell
Experience: Advanced
28-Jul-2005, 02:43 PM #5
Yes it is possible, using PHP would be the easiest method as it is serverside. There is a variable for the IP requesting the page. Here is some code I wrote that will work:

<?php
$authip = '255.255.255.255';
$reqip = $_SERVER['REMOTE_ADDR'];
if($reqip == $authip){
echo ("This text will only be displayed to: ");
echo ($authip);
}
?>

Just put this in a normal web page and change the extension from '.htm' or '.html' to '.php' and make sure your host supports PHP files. There would be a way to do this with clientside scripting however this would not be secure as everyone could just view the page source and see the supposedly hidden data.

Hope this helps.
pushcrew's Avatar
Member with 77 posts.
 
Join Date: Jul 2005
Experience: Einstein
31-Jul-2005, 02:59 AM #6
xanga is not possible, maybe a splash screen. but if your talking about the things u in your weblog like date: today i.... then yes

http://help.xanga.com/caniprotectmyposts.htm
LuthorCorp's Avatar
Member with 35 posts.
 
Join Date: Sep 2002
Experience: Intermediate
31-Jul-2005, 10:47 AM #7
No... I know I can make protected posts.

It's one individual person/IP (not a user) that I want to put a message up for.
pushcrew's Avatar
Member with 77 posts.
 
Join Date: Jul 2005
Experience: Einstein
31-Jul-2005, 12:20 PM #8
not sure how to do that, I think you ask xanga to add a feature like that.
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
31-Jul-2005, 11:03 PM #9
Not unless you have a separate webhost that supports PHP or another serverside scripting language.
pushcrew's Avatar
Member with 77 posts.
 
Join Date: Jul 2005
Experience: Einstein
01-Aug-2005, 02:17 AM #10
yeah for your own site, but Xanga is different, its a web blog, so basically don't get much option of doing what you want.
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
01-Aug-2005, 02:19 AM #11
If you have access to another host you could put the script there and include it in xanga either through an image or iframe.
pushcrew's Avatar
Member with 77 posts.
 
Join Date: Jul 2005
Experience: Einstein
01-Aug-2005, 02:21 AM #12
not sure how that works, but coding in xanga is limited, maybe if u pay them, then that might work.
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
01-Aug-2005, 02:33 AM #13
As I said, you'd include it into xanga through an image. Would just require a host that supports PHP and gd or imagemagick.
pushcrew's Avatar
Member with 77 posts.
 
Join Date: Jul 2005
Experience: Einstein
01-Aug-2005, 02:35 AM #14
would it need to include a splash image? Like a image to appear before the acual content? I found this javascript that does that on the net.
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
01-Aug-2005, 04:25 AM #15
No, he wouldn't be able to check the IP address in javascript. It needs to be a serverside language. But it could be run through a regular image on the page.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:03 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.