The Personal Weblog of Akshay Jain
Long time and I am back blogging!!
Firstly, I have discovered that the PHPLD captcha can be broken easily and there are numerous bots which are taking benefit of this vulnerability to post spam all around the net. A really good way to prevent automated submissions is to use reCaptcha mod available at http://phpld.frozenminds.com/recaptcha.
This is primarily an extension to this post: Approve all links.
When you use the above code snippet it will automatically approve all links and all of you using PHPLD know that this means a lot of spam submissions which reduce the quality of the directory. It is a Catch 22 situation, either you can manually see and approve hundreds of submissions thus preventing spam or you can use the Approve all links code, save on a lot of precious time but end up approving all spam.
This code has removed about 95% of all spam for me. However, people might be getting different “niches” of spam and therefore, you should add on to this keyword blacklist to get better results. This can be run directly in PHPMyAdmin
1 2 3 4 5 6 7 8 9 10 11 12 | UPDATE PLD_LINK SET status='2' WHERE status='1'; UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%casino%' OR `DESCRIPTION` LIKE '%casino%' OR `URL` like '%casino%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%pills%' OR `DESCRIPTION` LIKE '%pills%' OR `URL` like '%pills%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%viagra%' OR `DESCRIPTION` LIKE '%viagra%' OR `URL` like '%viagra%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%fuck%' OR `DESCRIPTION` LIKE '%fuck%' OR `URL` like '%fuck%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%cunt%' OR `DESCRIPTION` LIKE '%cunt%' OR `URL` like '%cunt%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%cialis%' OR `DESCRIPTION` LIKE '%cialis%' OR `URL` like '%cialis%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%phentermine%' OR `DESCRIPTION` LIKE '%phentermine%' OR `URL` like '%phentermine%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%tramadol%' OR `DESCRIPTION` LIKE '%tramadol%' OR `URL` like '%tramadol%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%soma%' OR `DESCRIPTION` LIKE '%soma%' OR `URL` like '%soma%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%penis%' OR `DESCRIPTION` LIKE '%penis%' OR `URL` like '%penis%'); UPDATE `PLD_LINK` SET `status`=0 where (`TITLE` LIKE '%gambling%' OR `DESCRIPTION` LIKE '%gambling%' OR `URL` like '%gambling%'); |
Its not hard to modify it to be run from a PHP script also. (Just see my past codes and you should be able to figure out how).
I am Akshay Jain a student in Economics and a web enthusiast. Most of my readers would be knowing me by my pseudonym champ_rock/champrock. This is my blog and I know I wont be keeping this updated. For contacting me, please use the contact form!
Please subscribe to the RSS feeds in order to get the latest updates on my blog!
airtel
apple
apple itunes
ascii
benchmark
broadband
browser
confidence motion
converter
ebaumsworld
firefox
fun
galwaysidle
Google
google campus ambassador
google gadget
google trends
google trends hacked
google trends spam
gtalk
hacked
hijack
how to poop at work
idle
iim
iim-i
iim pgp
iim student website
image to ascii
indian government
ipod
itunes
latest browsers
opera
opera functions
politics
ram
ram usage
redirect
swastika
taskmanager
trends hacked
typo
virus
ǝlƃooƃ noʎ ʞɔnɟ Broadband (India) (2)
Code Snippets (6)
Economics (1)
General (18)
Google (3)
Indian Politics (1)
Jainism (1)
Kindle Touch (1)
Latest Buzz (6)
New Scripts (1)
opera (2)
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Puneet
April 9th, 2010 at 5:13 pm
Thank you for your information, In phpld do you know how to find all deep links, I want to remove all submitted deep links via sql. Please help if possible.
Vimax
April 29th, 2010 at 4:07 pm
That a good idea..so brilliant..we can choose keyword blacklist first..where we can find it
Drew Satsky
July 22nd, 2010 at 3:45 am
Hi all, im really happy
i just got my new IPhone 4G for FREE lol!. I didn’t think it would work but it pulled through. I followed the steps on http://freeiphone4g4u.blogspot.com and i just thought ide share it!
Güncel Haberler
August 2nd, 2010 at 5:40 pm
very good
melony
September 29th, 2010 at 10:05 am
kLS6h6 http://cgE8hcmk9Vvqlosr5wcBa6nk.com
Shopping
October 16th, 2010 at 1:50 pm
Thx, another sql statement added to my arsenal to help remove all the damm spam coming in every day
Johnny
January 23rd, 2011 at 10:30 pm
Hi, is your blog auto approving comments? I’m just checking it.
male enhancement
July 22nd, 2011 at 7:51 pm
This blog really makes me impressed and attractive thanks to this blog I can get more knowledge from previous
eDirectories
September 27th, 2011 at 7:07 am
The question is, would this remove any already approved links? Hopefully your approved links don’t have the above mentioned words in them, but I’m more or less talking about if you used different words. Just a thought.
Thanks for the tip
design mezzanines
March 24th, 2012 at 1:04 am
industrial is no laughing matter