You are not logged in.
- Topics: Active | Unanswered
#76 2008-12-15 8:13 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
I can't until I figure out where it's storing the vars
/edit
Until I figure it out, you'll need to remove the following;
if($username ==''){
$username = {VAR_THE_MOD_IS_USING};
$email = {VAR_THE_MOD_IS_USING};
}
Last edited by MysteryFCM (2008-12-15 8:17 pm)
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#77 2008-12-15 8:43 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
Is the developer of that mod actually still around? (his forum has been over run with spam from the looks of it)
/edit
I've fired the developer an e-mail until I get this sorted out
Last edited by MysteryFCM (2008-12-15 8:50 pm)
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#78 2008-12-15 9:03 pm
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
I can't until I figure out where it's storing the vars
/edit
Until I figure it out, you'll need to remove the following;
if($username ==''){ $username = {VAR_THE_MOD_IS_USING}; $email = {VAR_THE_MOD_IS_USING}; }
I removed it immediately after the test, but $username = {VAR_THE_MOD_IS_USING}; again causes errors i my file. I don't upload to server because my ZendStudio-5.5.0 show the error.
But if my VARS are different, why if I test all data are correct?
Funiest jokes and pics
Offline
#79 2008-12-15 9:10 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
It depends on how the test was done?
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#80 2008-12-15 9:22 pm
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
It depends on how the test was done?
I simply open my reg page, place user name and email from SFS and click Send.
Maybe this can help - http://www.stopforumspam.com/forum/t280 … pforumspam
I have installed it and modified \add mailer\ and it send all data to admin. But today removed it from my file after install your mod.
Funiest jokes and pics
Offline
#81 2008-12-15 9:30 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
Can you try this;
Replace;
$username = $HTTP_POST_VARS['username'];
$email = $HTTP_POST_VARS['email'];
With;
if($username =='';){
$username = $HTTP_POST_VARS['username'];
$email = $HTTP_POST_VARS['email'];
}
Last edited by MysteryFCM (2008-12-15 9:32 pm)
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#82 2008-12-15 9:43 pm
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
Fatal error: Function name must be a string in C:\xAmp\xampp\htdocs\phpbb2\includes\usercp_register.php on line 81
Sorry, MysteryFCM, I'm already tired and must go to sleep. I will continue tomorrow.
Good night!
Funiest jokes and pics
Offline
#83 2008-12-15 10:02 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
My fault I'm afraid .... replace;
if($username =='';){
With;
if($username ==''){
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#84 2008-12-15 10:06 pm
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
My fault I'm afraid .... replace;
if($username =='';){
With;
if($username ==''){
I already test it - don't work too.
Till tomorrow!
Funiest jokes and pics
Offline
#85 2008-12-15 10:10 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
Oks catch you tomorrow
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#86 2008-12-16 8:25 am
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
Good morning!
Today I placed the code:
if($username ==''){
$username = $HTTP_POST_VARS['username'];
$email = $HTTP_POST_VARS['email'];
}
And had tests with my friend - user get error:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Your advice?
Last edited by diabolic.bg (2008-12-16 8:35 am)
Funiest jokes and pics
Offline
#87 2008-12-16 8:45 am
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
Is that only after adding the extra code?
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#88 2008-12-16 8:52 am
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
Is that only after adding the extra code?
Yes. Without extra code don't have a problem with page, only missing data to admin.
Funiest jokes and pics
Offline
#89 2008-12-16 8:57 am
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
Try changing;
if($username ==''){
$username = $HTTP_POST_VARS['username'];
$email = $HTTP_POST_VARS['email'];
}
To;
if($username =='' && !$HTTP_POST_VARS['username'] ==''){
$username = $HTTP_POST_VARS['username'];
$email = $HTTP_POST_VARS['email'];
}
This will check to ensure the post vars actually contain something.
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#90 2008-12-16 11:17 am
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
Hi!
Maybe finaly we have access!
This is my test:
-----------------------------------------------------
The following was blocked by the StopForumSpam filter
Username: Wykxfpfv
Email: qqijajag@gmail.com
IP: 192.168.0.1
-----------------------------------------------------
And this is for two my friends:
-----------------------------------------------------
The following was blocked by the StopForumSpam filter
Username: emailtest
Email: qqijajag@gmail.com
IP: 217.xxx.xxx.xxx
-------------------------------
The following was blocked by the StopForumSpam filter
Username: Wykxfpfv
Email: qqijajag@gmail.com
IP: 213.xxx.xxx.xxx
______________________________________________________
If you want, you can test too - http://wasteland-bg.com \reg inteface is only in Bulgarian lang.\
Thank you for your patience!
EDIT
Oh, no-o-o!
3th my friend:
The following was blocked by the ProjectHoneyPot (127.2.7.1) Spamhaus (PBL - Spamhaus Maintained) filter
Username:
Email:
IP: 90.xxx.xxx.xx
Registration blocked by spam filter. Please contact the administrator.
He get mesage after the click on registry agreed link. Before opens reg page!!!
Maybe all cases from yesterday are same... The mod checked ProjectHoneyPot and Spamhaus before real posting and sent to me lie. Yesterday I was surprised how suddenly the spammers number grow after installing the mod.
After excluding DNSBL my friend from the last test already can open reg page and post all data.
The following was blocked by the StopForumSpam filter
Username: Larisa9
Email: Rewalk4@narod.ru
IP: 90.xxx.xxx.xx
I will exclude DNSBL check for now. Will check only SFS and your DB.
Last edited by diabolic.bg (2008-12-16 1:02 pm)
Funiest jokes and pics
Offline
#91 2008-12-16 12:35 pm
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
Hi, MysteryFCM!
Can I replace the code
/// BEGIN SPAM MOD
if($username =='' && !$HTTP_POST_VARS['username'] ==''){
$username = $HTTP_POST_VARS['username'];
$email = $HTTP_POST_VARS['email'];
}
$ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( (
!empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
with
/// BEGIN SPAM MOD
if($username =='' && !$HTTP_POST_VARS['username'] ==''){
$username = $HTTP_POST_VARS['username'];
$email = $HTTP_POST_VARS['email'];
$ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( (
!empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
}
???
This must compel script to check AFTER POSTING, not before. In this way I can be sure that detector block human-spammer not a bot. As I already tell you, the bots are stopped from Unique Registration Hash.
EDIT
I tested it - working properly. Now blocked IPs from BNSBL only after klicking to POST. You can use it in next version.
Last edited by diabolic.bg (2008-12-16 1:45 pm)
Funiest jokes and pics
Offline
#92 2008-12-16 2:54 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
Nice one, cheers for letting me know (and sorry for not getting back to you sooner, been offline for a few hours)
/edit
fspamlist.com isn't mine btw, I just host it (it belongs to Josh)
Last edited by MysteryFCM (2008-12-16 2:58 pm)
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#94 2008-12-18 10:57 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
Just a note folks, I've changed the licence to the Creative Commons Attribution 2.0 licence;
http://creativecommons.org/licenses/by-sa/2.0/uk/
See the following for how it is displayed on the "site" itself;
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#95 2008-12-20 12:53 pm
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
Hi!
Today I find out something bad - if your server have problems, I have problems too:
Warning: get_headers(http://google.co.uk) [function.get-headers]: failed to open stream: HTTP request failed! E in C:\xAmp\xampp\htdocs\check_spammers\index.php on line 139
You don't seem to be connected to the internet. Unless you're querying a local database, this isn't going to work ...
or
Warning: file_get_contents(http://www.fspamlist.com/xml.php?ip= 89.215.50.158) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in C:\xAmp\xampp\htdocs\private\check_spammers.php on line 62
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in C:\xAmp\xampp\htdocs\private\check_spammers.php:63 Stack trace: #0 C:\xAmp\xampp\htdocs\private\check_spammers.php(63): SimpleXMLElement->__construct('') #1 C:\xAmp\xampp\htdocs\private\check_spammers.php(492): checkSpambots() #2 C:\xAmp\xampp\htdocs\check_spammers\index.php(181): include('C:\xAmp\xampp\h...') #3 {main} thrown in C:\xAmp\xampp\htdocs\private\check_spammers.php on line 63
In the next check (5 minutes after) all was normally...
Before change in index page (I replaced it yesterday) the problem is not appears. I installed all on my server because I want to be independent...
Finally I will remove folders from my server and will check spammers only online...
EDIT
I have replaced
$fspamcheck = file_get_contents('http://example.com/check_spammers/check_spammers_plain.php?dbl=no&name='.$username.'&email='.$email.'&ip='.$ip);
with
$fspamcheck = file_get_contents('http://temerc.com/check_spammers/check_spammers_plain.php?dbl=no&name='.$username.'&email='.$email.'&ip='.$ip);
and now I cann't open my reg page because I don't have a connection with your site.
If I replace your domain with mine, all works.
I think you must change your mod conception to avoid this problem.
http://temerc.com/check_spammers/
Error 404: File Not Found
The requested page is not found. This may happen due to the following reasons:
Page or file is outdated, renamed, moved, or does not exist.
You typed the address incorrectly, like http://www.example.com/pgae.html instead of http://www.example.com/page.htmlPlease contact your webmaster if you are not sure what goes wrong.
Last edited by diabolic.bg (2011-09-12 3:18 pm)
Funiest jokes and pics
Offline
#96 2008-12-20 4:23 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
This;
temerc.com/check_spammers
MUST be this;
temerc.com/Check_Spammers
temerc.com is on a Linux server, which is case sensitive.
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#97 2008-12-20 4:26 pm
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
The error is mine but this is importantly to tell others.
EDIT
Will be problem for you if I add in my site my web conters in check_spammers/index.php?
I like to watch my traffic.
Last edited by diabolic.bg (2008-12-20 5:02 pm)
Funiest jokes and pics
Offline
#98 2008-12-21 9:14 pm
- MysteryFCM
- Member
- From: Tyneside, UK
- Registered: 2008-01-16
- Posts: 606
- Website
Re: Spambot detector (with the use of this API)
It's released under a Creative Commons licence, so other than the requirements of that licence, you can pretty much do as you wish with it
Sorry for taking so long to get back to you btw, I was extremely tired yesterday, and was busy today, so have just got back online.
Regards
Steven Burn
I.T. Mate / hpHosts
it-mate.co.uk / hosts-file.net
Offline
#100 2009-01-04 3:39 pm
- diabolic.bg
- Member
- From: Bulgaria, Eastern Europe
- Registered: 2008-11-03
- Posts: 589
- Website
Re: Spambot detector (with the use of this API)
Hi, MysteryFCM!
I have a some problem:
Spammer blocked by hpHosts Spam filter
The following was blocked by the StopForumSpam filter
Username: andre 79
Email: chikiriki1968@abv.bg
IP: 94.190.193.114
If you check StopForumSpam DB, you will see that doesn't have this user, email and IP address. But I lost a user...
Where is the problem? Any ideas?
Funiest jokes and pics
Offline