ComputerForum.com ComputerForum.com  
TigerDirect
 
Go Back   Computer Forum > Internet > Internet Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 12-20-2006, 06:00 PM   #1 (permalink)
New Member
 
Join Date: Dec 2006
Posts: 22
Default IP addy of people who post comms on blogs

Hey all,
I was wondering if we could see the IP address of a person who's posted a comment on our blog?
My visitors, who are people I know, usually put their real name, but when it comes to posting something rather offensive they put in "anonymous".
So I'd like to identify those people.
Can anyone help?
HMSSHM is offline   Reply With Quote


Old 12-20-2006, 06:41 PM   #2 (permalink)
VIP Member
 
OvenMaster's Avatar
 
Join Date: Jan 2006
Location: Red Sox Nation
Age: 49
Posts: 1,982
Default

If I was on a forum and my IP was made public I'd leave that forum so fast it would make your head spin. I value my internet privacy... but then again, I don't make offensive posts!
Tom
__________________

Frankenbox III:
CPU: AMD Athlon 64 X2 4200+ *** MOBO: Biostar K8M800 Micro AM2 *** RAM: 2x1GB Kingston DDR2 667
HDD: WD 80GB Master, Seagate 320GB Slave *** OPT: two Pioneer DVR-115DBK DVD burners
PSU: Antec Basiq 500W *** GPU: PNY GeForce FX5200 256MB AGP 8x *** MON: ViewSonic LCD VA721
CASE: EvTek minitower *** SND: Diamond Xtreme 5.1 *** OS: XP Home SP2 *** ROUTER: Linksys BEFSR41

OvenMaster is offline   Reply With Quote
Old 12-20-2006, 07:03 PM   #3 (permalink)
Bronze Member
 
Join Date: Apr 2005
Posts: 41
Default

I agree with OvenMaster. However, I think that if an ip address could be seen, then it should only be seen by moderators or the admin of the board, thats it, which is true with someboard. Not just various members seeing it. I was a member of a board that was realted to bodybuilding/fitness and you could see other's IP addresses under their Location area/above their post numbers. That board was a nightmare, cause of stalking issues. Half of the people on the board were actually subpoenaed because of two members who had an argument and went from the forum and spilled over into a stalking case that turned into an aggrivated battery case. Needless to say, the board was shut down temporarly and then reopened under a new name/ownership. it's just a BAD idea to know others IP address IMO.
hdansjr is offline   Reply With Quote
Old 12-20-2006, 07:11 PM   #4 (permalink)
P.I Dragon
 
dragon2309's Avatar
 
Join Date: May 2005
Location: KENT, UK
Age: 19
Posts: 8,332
Default

ok, im not sure how your blog works, if its mainstream or not, or if its custom coded, if its custom this should be easy, To make it simple, i hope your using PHP.

this would be how to display a users IP when they are actively viewing a page

PHP Code:
$ip = $_SERVER['REMOTE_ADDR'];
That integrates the value into the variable named "ip". Now im fairly sure you can save this variable, whether it be to a separate php file or SQL database, wherever your posts are going. Once the value of the variable has been saved or "captured" if you like and stored somewhere, your script to display posts can then be altered to include the displaying of the new variable, the one with the IP address in it.

Obviously if your not running in PHP then were back to square one, also if your on a commercial board or shop bought software, it might be quite hard.

dragon
__________________
Intel Core2Duo E6600 @ 3.1Ghz - (__CPU__)
eVGA 680i SLi - (__MOB__)
4Gb Corsair Dominator DDR2-800 (4x1024Mb) - (__RAM__)
250Gb Western Digital SATAII 7200rpm - (__HDD__)
nVidia BFG 8800GTS OC 320Mb - (__GFX__)
LG DVD+/-RW 18x DVD-RAM - (__OPT__)
Triple Boot - [XP Pro] + [Vista Ultimate] + [Ubuntu 7.10] - (__OS__)

[3DMARK'03 :: 25,587] --- [3DMARK'05 :: 13,989] --- [3DMARK'06 :: 8791] - (__BENCHMARKS__)


dragon2309.co.uk - a little slice of geek

dragon2309 is offline   Reply With Quote
Old 01-10-2007, 05:43 PM   #5 (permalink)
New Member
 
Join Date: Dec 2006
Posts: 22
Default

Sorry but I don't understand how to use that thing.
HMSSHM is offline   Reply With Quote


Old 01-10-2007, 06:06 PM   #6 (permalink)
VIP Member
 
lee101's Avatar
 
Join Date: Mar 2005
Location: UK
Age: 17
Posts: 1,150
Default

What is your blog running, is it wordpress, which is common, if so you are able to see the IP address of the poster in the comments section.
If not, as dragon said you can modify it log the IP, using:
PHP Code:
$ip = $_SERVER['REMOTE_ADDR'];
echo
$ip;
would display the users IP address, you can then integrate that into the blog so that whenever a user posts a comment, it records their IP address, an example would be:
PHP Code:
$ip = $_SERVER['REMOTE_ADDR'];
//SQL QUERY
mysql_query("INSERY INTO `blog_table` VALUES(NULL,'whatever','fdsfds,'$ip')");
$ip would represent the IP address, you would not be able to use that code directly as it would need to be customised for your database.

If you are using wordpress and it is spam which you are getting, i would reccomend installing the akismet ant spam mod, itis free and very effective at stopping spam.

Lee
__________________
My PC: Core2Duo E6300 @ 1.86 Ghz, Asus P5v-VM DH , 200 GB Maxtor SATA ,2GB (2*1GB Kingston DDRII), Radeon x1650 Graphics (256 mb), 2* Acer 17 inch TFT's, Windows Vista Home Premium
Server: AMD Athlon XP 2800+ 256 Mb Ram, 8Gb IDE for o/s, 2 * 250GB SATAII for storage, Ubuntu Server 7.10

lee101 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Older people not trusting younger people lee101 General Computer Chat 35 03-04-2006 10:10 AM
Testing a new forum and need people to post anything dead on the head Internet Discussion 4 09-26-2004 06:36 PM


All times are GMT +1. The time now is 03:36 AM.


Powered by: vBulletin Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Copyright © 2002-2007 Computer Forum and Web Design Forum