coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: redhair on October 20, 2006, 03:53:35 PM

Title: What is msg_hdr_ip?
Post by: redhair on October 20, 2006, 03:53:35 PM
Just a small question related to my hunt for banning a spammer.
Title: Re: What is msg_hdr_ip?
Post by: Nibbler on October 20, 2006, 06:23:31 PM
The IP address of the comment poster.
Title: Re: What is msg_hdr_ip?
Post by: Joachim Müller on October 20, 2006, 08:09:16 PM
Regular support question. Belongs into support board. Moving accordingly.
Title: Re: What is msg_hdr_ip?
Post by: redhair on October 20, 2006, 08:13:15 PM
ok .. the ip, but I also spot (many different) IP's at msg_raw_ip.
Whats the difference between both?
Title: Re: What is msg_hdr_ip?
Post by: Nibbler on October 20, 2006, 08:17:37 PM
What do you mean?
Title: Re: What is msg_hdr_ip?
Post by: redhair on October 20, 2006, 08:25:47 PM
I see in mysql two rows related to IP's.
One beeing msg_raw_ip and the other msg_hdr_ip.
I am beeing honoured by a spammer that likes to leave comments on my photography.
The field 'msg_raw_ip' is always different, while msg_hdr_ip continous to be the same (of that same user).
So I was wondering..
I guess my spammer found a way to have different msg_hdr_ip's, but cannot escape from msg_raw_ip.
Title: Re: What is msg_hdr_ip?
Post by: Nibbler on October 20, 2006, 08:31:20 PM
raw ip is from $_SERVER['REMOTE_ADDR']
header ip is from $_SERVER['HTTP_X_FORWARDED_FOR'] if available.
Title: Re: What is msg_hdr_ip?
Post by: redhair on October 20, 2006, 08:41:21 PM
Thank's!

Is there a mod that will hang the spammer by it's balls? (not a serious question).

It's very frustrating to have my pictures commented with the kind of comments he leave...
Title: Re: What is msg_hdr_ip?
Post by: Joachim Müller on October 20, 2006, 10:14:11 PM
As suggested various times, there are 4 options to fight the spam problem:
1) Disable anonymous comments
2) Apply the captcha plugin or mod
3) Apply the Akismet mod
4) If you're adventurous and not afraid of alpha-stage software, check out the devel branch of the SVN and use the comment approval feature there (keep in mind that the devel version goes completely, utterly unsupported)
Title: Re: What is msg_hdr_ip?
Post by: redhair on October 20, 2006, 10:59:51 PM
Yeah! thanks for that as well.
I had some oxygen, and feel a lot better now.
I'm gonne have a look at these solutions later on.
Title: Re: What is msg_hdr_ip?
Post by: Joachim Müller on October 20, 2006, 11:08:19 PM
Another suggestion: don't even bother to ban spammers by IP, they spoof it anyway and will return later with another set of IP addresses.