Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-10-18 15:00:41
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Textpattern says that my IP is blacklisted even though it is not
Hi
I have just upgraded i the new version 4.0.4 yesterday.
I can’t write comments in my blog. I get this error:
your_ip_is_blacklisted_by sbl.spamhaus.org
Though my IP address is not blacklisted. I have even tried ssh’in to the webserver and tried posting from localhost. I get the same message. And of course localhost should not be blacklisted :)
Do you have any idea how to solve this?
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
When you’re logged in using SSH, try the following (assuming your IPnr is 1.2.3.4):
host 1.0.0.127.sbl.spamhaus.org
host 4.3.2.1.sbl.spamhaus.org
What does that give as a result?
What PHP version are you using?
Are you using a Windows, Linux or BSD webhost? (or something even more exotic)
Last edited by ruud (2006-10-18 16:54:09)
Offline
#3 2006-10-18 17:04:56
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
(~) host 250.103.91.83.sbl.spamhaus.org ; host 1.0.0.127.sbl.spamhaus.org
250.103.91.83.sbl.spamhaus.org does not exist, try again
1.0.0.127.sbl.spamhaus.org does not exist, try again
Offline
#4 2006-10-18 17:06:02
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
And I am using PHP Version 5.1.4-Debian-0.1~sarge1 (Debian GNU/Linux).
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
If you put the following in a new PHP file on your website, what does your browser show when you open the page? It should say: bool(false)
<?php var_dump(gethostbynamel('1.0.0.127.sbl.spamhaus.org')); ?>
PS. Debian Sarge with PHP5.1.4? Is that a backport or did you compile it yourself?
Last edited by ruud (2006-10-18 17:27:33)
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
Perhaps a temporary workaround until the real cause of this problem is found… try sbl.spamhaus.org:2 as the spam blacklist in the advanced preferences.
Last edited by ruud (2006-10-18 17:50:55)
Offline
#7 2006-10-18 17:53:18
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
<?php var_dump(gethostbynamel('1.0.0.127.sbl.spamhaus.org')); ?> gives:
array(1) { [0]=> string(14) "83.221.155.180" }
PHP5.1.4 is a backport. I use this source:
deb http://people.debian.org/~dexter php5.1 sarge
deb-src http://people.debian.org/~dexter php5.1 sarge
Offline
#8 2006-10-18 17:54:49
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
So I should add :2 to the blacklist-field. What does that?
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
And if you do <?php var_dump(gethostbynamel('250.103.91.83.sbl.spamhaus.org')); ?>, does that give the same result?
Is 83.221.155.180 the IPnr of the server where your website is hosted?
I’ve just tested with php5-cli (Debian Etch) and that one gives the correct results.
Adding :2 checks if the blacklist returns 127.0.0.2 as an answer. It’s more explicit than just checking if an answer is returned at all.
Last edited by ruud (2006-10-18 17:57:09)
Offline
#10 2006-10-18 17:59:03
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
Added the line to my php test file. It now gives:
array(1) { [0]=> string(14) "83.221.155.180" } array(1) { [0]=> string(14) "83.221.155.180" }
The IP address of the webserver is 83.221.155.180 and 83.221.155.181. This particular virtual host uses 83.221.155.180.
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
It’s funny that you mention this, I tried posting a comment to the textpattern blog this morning and it told me that I was a spammer. perhaps this is something that requires a deeper look.
Proud Canadian. Toronto Locksmith , Actualize Consulting
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
True… I’m installing the same PHP package 5.1.4 so I can try reproducing it.
php5.1-cli and php5-cgi give the correct result (same package as used tdn, the topic starter), but I’m using them from the command line to avoid having to reconfigure Apache.
tdn: can you try executing that test PHP file from the command line in an SSH session:
php5.1-cgi testfile.php
Last edited by ruud (2006-10-18 18:20:15)
Offline
#13 2006-10-18 18:27:08
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
array(1) {
[0]=>
string(14) "83.221.155.180"
}
array(1) {
[0]=>
string(14) "83.221.155.180"
}
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
Did the :2 workaround help?
I’m not able to reproduce the problem you have, even with the exact same PHP package installed, but since you’re not the only one who experienced this problem… there have to be similarities between the two cases that we’ve seen so far.
Offline
#15 2006-10-18 18:36:21
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
I have four different virtual hosts all running textpattern 4.0.4 with the same problem.
I just tried the :2 now and it did help. But is this the correct thing to do? Shouldn’t it work without the :2 part?
Offline