Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > PHPLD Community

PHPLD Community Have suggestion about the site? Or want to network?

Closed Thread
 
topic widgets
Old 12-08-2006   #1
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default For those victim of the robot spam

Limiting spam on submit.php

Delete /submit.php or replace it with some temporary text to make sure you stop them. (make backup)

Open up PHPMyAdmin, click on the SQL tab on the top and in the text field insert the following line:

SELECT * FROM `PLD_LINK` WHERE `DESCRIPTION` LIKE '%<a href=%' LIMIT 100;

Go to the bottom of the list and click check all and then delete. Repeat this if there were more than 100 until all are gone.

Do the same with the following lines:

SELECT * FROM `PLD_LINK` WHERE `TITLE` = '' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `DESCRIPTION` = '' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` = '' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `OWNER_EMAIL` = '' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `DESCRIPTION` LIKE '%.............................%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `DESCRIPTION` LIKE '%[URL=%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `DESCRIPTION` LIKE '%viagra%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `DESCRIPTION` LIKE '%penis%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `DESCRIPTION` LIKE '%**censored****censored****censored****censored** %' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%shop-eua.com.ar%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%nicole-24.com%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%plusize.com.ar%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%netmusoru.ru%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%womensite.com.ar%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%shopsfurniture.com%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%index-24.com%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%axandra-web-site-promotion-software-tool.com%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%shakira-concert-ticket.net%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%portalshop-24.ws%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%portalshop-24.us%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%delivery-vinos.com.ar%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%shoes-eua.com.ar%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `URL` LIKE '%shop-site.com.ar%' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `IPADDRESS` = '122.99.223.68' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `IPADDRESS` = '85.234.43.89' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `IPADDRESS` = '82.140.119.149' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `IPADDRESS` = '193.110.112.228' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `IPADDRESS` = '194.143.145.61' LIMIT 100;
SELECT * FROM `PLD_LINK` WHERE `IPADDRESS` = '72.36.236.34' LIMIT 100;

This will delete I think more than 50% of the robot spam. The rest you have to do manually ....

I am not sure if support here finally understood the problem so I will have my own programmer to close the security whole in the submit.php. I will post here when it is finished. I hope he can make it.
__________________
/ Jim Westergren
www.jimwestergren.com

Last edited by David; 1 Week Ago at 07:47 PM.
Jim_Westergren is offline  
Old 12-08-2006   #2
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default

Thanks for helping, Jim.
We are also still working on this.
David is offline  
Old 12-08-2006   #3
amitpatel_3001
 
Join Date: Mar 2006
Location: India
Posts: 70
Default

This has increased a lot these days :(
Iam waiting for phpld support to do something about this in the next update
Thanks to jim for his help!
Amit
__________________
amitpatel_3001 is offline  
Old 12-08-2006   #4
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default

We are getting closer.
David is offline  
Old 12-09-2006   #5
The Webmaster
 
Join Date: Dec 2006
Posts: 15
Default

Code:
Content visible to registered users only.
Well thats what a community is for, to help and share...

Good work Jim, and David I hope there will be an official fix very soon..
__________________
non functioning links were removed
The Webmaster is offline  
Old 12-09-2006   #6
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default

Actually it did not work that well.

I got 100 submissions since last night, 50 was from spam bots.

But at least better than before when I got 400 spam bots submissions in a day.

/ Jim
__________________
/ Jim Westergren
www.jimwestergren.com
Jim_Westergren is offline  
Old 12-09-2006   #7
agnivo007
 
agnivo007's Avatar
 
Join Date: Feb 2006
Posts: 103
Default

I hope 3.1.0 is already equipped to handle a large part of this nonsense spamming.
__________________
Premium Paid Directory Network
agnivo007 is offline  
Old 12-09-2006   #8
praveen
Supporter
 
Join Date: Mar 2006
Location: in a distant land far away from reality
Posts: 254
Default

Code:
Content visible to registered users only.
Jim is using 3.1.0
praveen is offline  
Old 12-09-2006   #9
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default

Well, I was but I changed back to 3.0.6 .....
__________________
/ Jim Westergren
www.jimwestergren.com
Jim_Westergren is offline  
Old 12-09-2006   #10
saadahmed007
Supporter
 
Join Date: Jun 2006
Location: Lahore, Pakistan.
Posts: 58
Default

Why you changed back to 3.06, Jim?
Saad
saadahmed007 is offline  
Old 12-09-2006   #11
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default

http://www.phplinkdirectory.com/foru...ead.php?t=8194
__________________
/ Jim Westergren
www.jimwestergren.com
Jim_Westergren is offline  
Old 12-09-2006   #12
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default Solution!

Finally I found the solution on how to stop the spam bots!

I found it by looking at the log files and see how the bots did.

Do like this:

Make a copy of /submit.php and name it /submit2.php
Make a copy of /templates/submit.tpl and name it /templates/submit2.tpl

(In the changes replace domain.com with your domain.)

Open /submit.php

At the very top, replace

Code:
Content visible to registered users only.
With the following:

Code:
Content visible to registered users only.
Open /submit2.php

At the very top, replace

Code:
Content visible to registered users only.
With the following:

Code:
Content visible to registered users only.
Replace:

Code:
Content visible to registered users only.
With:

Code:
Content visible to registered users only.
Open /captcha.php

At the very top, replace

Code:
Content visible to registered users only.
With the following:

Code:
Content visible to registered users only.

Open /templates/submit.tpl

Find:

Code:
Content visible to registered users only.
Replace with:

Code:
Content visible to registered users only.
Open /templates/submit2.tpl

Find:

Code:
Content visible to registered users only.
Replace with:

Code:
Content visible to registered users only.

If you want to give me some credit, feel welcome to blog about or link to this page:

http://www.jimwestergren.com/fightin...ite-spam-bots/
__________________
/ Jim Westergren
www.jimwestergren.com

Last edited by Jim_Westergren; 12-09-2006 at 10:16 PM.
Jim_Westergren is offline  
Old 12-09-2006   #13
James
:)
phpLD Support
phpLD Administrator
Supporter
Moderator
 
James's Avatar
 
Join Date: Aug 2006
Location: Nanaimo, BC , Canada
Posts: 24,016
Default

Dude are you sure about that since the submit.php submits to itself ........

yeah just did a test your not going to get many submissions at all.
__________________
Attention: For Support Please Read this thread.
IF the domain is not listed in your PhpLD users area and it is 3.x
You will have to list it before ANY questions are answered.

My paypal is rentawebmaster @ gmail.com
^^ if I have helped you help me I need a new laptop
PhpLD Recommended Hosting: Here
They work with you not against you
Live Directory
James is offline  
Old 12-09-2006   #14
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default

**censored****censored****censored****censored**.

But I have worked out a solution. Post is updated.
__________________
/ Jim Westergren
www.jimwestergren.com
Jim_Westergren is offline  
Old 12-10-2006   #15
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default

Code:
Content visible to registered users only.
Thanks for posting this. We are going to keep working on this.
I think your solution will definitely slow them way down, and should you start getting spammed again, you can always create submit3.php, etc.
David is offline  
Old 12-10-2006   #16
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default

Thanks, this worked like wonder. No more spam bots.

I first made 7 different versions of submit but I realized it is not needed. Only 2 are needed. Submit.php goes to submit2.php and submit2.php goes back to submit.php. The referral rules iron out all bots.
__________________
/ Jim Westergren
www.jimwestergren.com
Jim_Westergren is offline  
Old 12-10-2006   #17
James
:)
phpLD Support
phpLD Administrator
Supporter
Moderator
 
James's Avatar
 
Join Date: Aug 2006
Location: Nanaimo, BC , Canada
Posts: 24,016
Default

I noticed on the one in your sig is shows 3.06 in the tags. Did you install a 3.1 and it got spammed even with the security settings and hcanging your secret key?
__________________
Attention: For Support Please Read this thread.
IF the domain is not listed in your PhpLD users area and it is 3.x
You will have to list it before ANY questions are answered.

My paypal is rentawebmaster @ gmail.com
^^ if I have helped you help me I need a new laptop
PhpLD Recommended Hosting: Here
They work with you not against you
Live Directory
James is offline  
Old 12-10-2006   #18
David
Administrator
phpLD Administrator
Supporter
 
David's Avatar
 
Join Date: Jan 2005
Posts: 12,325
Default

Code:
Content visible to registered users only.
To draw the conclusion that people should not help each other because they paid $10 makes no sense at all. Please work on your attitude. I'm going to send you a PM about this topic.
David is offline  
Old 12-10-2006   #19
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default

Code:
Content visible to registered users only.
I installed 3.1 but changed back to 3.06 for reasons explained here.

I still got spam but I don't know what is the secret key or security settings. I overwrote all files but when trying to run the install I was redirected to a java site. So probably my installation was not successful.

But I have now 3.06, the spam problem is solved and now I am happy
__________________
/ Jim Westergren
www.jimwestergren.com
Jim_Westergren is offline  
Old 12-10-2006   #20
Jim_Westergren
 
Jim_Westergren's Avatar
 
Join Date: Jul 2005
Posts: 243
Default

About the whole discussion about those $10:

To hire a Swedish PHP programmer it will cost you minimum $100 per hour.

I don't know how many hours the developers spent on PHPLD, hundreds? Maybe thousands??
__________________
/ Jim Westergren
www.jimwestergren.com
Jim_Westergren is offline  
Closed Thread

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
topic widgets



All times are GMT +1. The time now is 05:33 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.