Gossamer Forum
Home : Products : Links 2.0 : Customization :

I don't want ips checking

Quote Reply
I don't want ips checking
Hello everyone,

(Special thanks for Stealth's previous precious help.)

Now I was wondering how to prevent review cgi from checking ips. emails and names.

The ips is really a problem. I don't know why but it prevents me from even posting a single review or rating for days.

So if anyone has an idea on how to do this I'd be more than glad.

Thank you very much.

Chris.
Quote Reply
Re: [Christophe13] I don't want ips checking In reply to
not sure about review.cgi but glennu had something similar in his comments.cgi
Code:

if ($data[$db_ip] eq $ENV{'REMOTE_ADDR'}
) {
if ($data[$db_lid] eq $in{'LID'}
) {
&site_html_comments2_failure ("You have already
submitted a review/comment recently") and return;

I just deleted the if statment for the REMOTE_ADDR ip (actually, I think I just substituted 127.0.0.0, thus it always evaluated to FALSE )


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] I don't want ips checking In reply to
Hello,

Thanks for your help.

in fact I have:

next unless ($values[$db_linkid] eq $in{$db_cols[$db_linkid]} && $values[$db_ip] eq $ENV{'REMOTE_ADDR'});


so should I put the whole thing like this :

#next unless ($values[$db_linkid] eq #$in{$db_cols[$db_linkid]} && $values[$db_ip] eq # #$ENV{'REMOTE_ADDR'});

or should I, at least, let "next" uncommented ?
Not sure

Thanks !

Chris.
Quote Reply
Re: [Christophe13] I don't want ips checking In reply to
try

Quote:
#mod to allow multiple reviews

#next unless ($values[$db_linkid] eq $in{$db_cols[$db_linkid]} && $values[$db_ip] eq $ENV{'REMOTE_ADDR'});

next unless ($values[$db_linkid] eq $in{$db_cols[$db_linkid]} && $values[$db_ip] eq '127.0.0.0';


this preserves what the author coded and yet does what you need.


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."

Last edited by:

esm: Sep 5, 2002, 5:08 AM
Quote Reply
Re: [esm] I don't want ips checking In reply to
Well thank you Gene for your efforts.

Unfortunately the review.cgi script keeps sending me to the error page.

It keeps looking up for ips but I don't know where and how.

I'm really lost. But not abandonned ;-)

I have no idea what the cript is looking for.

Anyway if you have any other idea I attached the main part of the script.

I have to get rid of all the site_html_review_failure parts.

I really appreciate your time.

Cordially,



Chris.
Quote Reply
Re: [Christophe13] I don't want ips checking In reply to
the script that you sent does not contain the code we discussed above.

Did you try that and with what results?

You say you keep getting sent to the error page. Do your error logs show any thing?


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] I don't want ips checking In reply to
Hello Gene,

The change you sent me returns a 500 internal server error.

As soon as I put the code back up the review.cgi file is accepted again. (although it still keeps checking for ips)

I joined it with the code you sent me.

Thank you very much !

Chris.