|
| |||||||
| PHPLD Community Have suggestion about the site? Or want to network? |
![]() |
| | topic widgets |
| | #1 |
| Join Date: Jul 2005 Posts: 243 | 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. Last edited by David; 1 Week Ago at 07:47 PM. |
| |
| | #2 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | Thanks for helping, Jim. We are also still working on this. __________________ Helpful Links: templates supporters forum █ New phpLD User? Start here █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #3 |
| Join Date: Mar 2006 Location: India Posts: 70 | 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 __________________ PS 6.5 Strong Business Web Directory Directory |
| |
| | #4 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | We are getting closer. __________________ Helpful Links: templates supporters forum █ New phpLD User? Start here █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #5 |
| Join Date: Dec 2006 Posts: 15 | Code: Content visible to registered users only. Good work Jim, and David I hope there will be an official fix very soon.. __________________ non functioning links were removed |
| |
| | #6 |
| Join Date: Jul 2005 Posts: 243 | 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 |
| |
| | #7 |
| Join Date: Feb 2006 Posts: 103 | I hope 3.1.0 is already equipped to handle a large part of this nonsense spamming. __________________ Premium Paid Directory Network |
| |
| | #8 |
| Supporter Join Date: Mar 2006 Location: in a distant land far away from reality Posts: 254 | Code: Content visible to registered users only. |
| |
| | #9 |
| Join Date: Jul 2005 Posts: 243 | Well, I was but I changed back to 3.0.6 ..... |
| |
| | #10 |
| Supporter Join Date: Jun 2006 Location: Lahore, Pakistan. Posts: 58 | Why you changed back to 3.06, Jim? Saad |
| |
| | #11 |
| Join Date: Jul 2005 Posts: 243 | |
| |
| | #12 |
| Join Date: Jul 2005 Posts: 243 | 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. Code: Content visible to registered users only. At the very top, replace Code: Content visible to registered users only. Code: Content visible to registered users only. Code: Content visible to registered users only. Code: Content visible to registered users only. At the very top, replace Code: Content visible to registered users only. Code: Content visible to registered users only. Open /templates/submit.tpl Find: Code: Content visible to registered users only. Code: Content visible to registered users only. Find: Code: Content visible to registered users only. 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/ Last edited by Jim_Westergren; 12-09-2006 at 10:16 PM. |
| |
| | #13 |
| :) phpLD Support phpLD Administrator Supporter Moderator Join Date: Aug 2006 Location: Nanaimo, BC , Canada Posts: 24,016 | 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 |
| |
| | #14 |
| Join Date: Jul 2005 Posts: 243 | **censored****censored****censored****censored**. But I have worked out a solution. Post is updated. |
| |
| | #15 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | Code: Content visible to registered users only. I think your solution will definitely slow them way down, and should you start getting spammed again, you can always create submit3.php, etc. __________________ Helpful Links: templates supporters forum █ New phpLD User? Start here █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #16 |
| Join Date: Jul 2005 Posts: 243 | 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. |
| |
| | #17 |
| :) phpLD Support phpLD Administrator Supporter Moderator Join Date: Aug 2006 Location: Nanaimo, BC , Canada Posts: 24,016 | 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 |
| |
| | #18 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | Code: Content visible to registered users only. __________________ Helpful Links: templates supporters forum █ New phpLD User? Start here █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #19 |
| Join Date: Jul 2005 Posts: 243 | Code: Content visible to registered users only. 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 |
| |
| | #20 |
| Join Date: Jul 2005 Posts: 243 | 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?? |
| |