Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Anyone looking for a way to modernize legacy data or easily migrate to a more cost-effective database without sacrificing functionality will benefit from this seminar. View the Intro to Advantage Database Server now!
  #31  
Old May 2nd, 2008, 11:24 AM
ryon420's Avatar
ryon420 ryon420 is offline
Oscar Wilde addict
Click here for more information
 
Join Date: Jun 2006
Location: Was lost, then found, now lost again.
Posts: 2,534 ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)ryon420 User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 1496 Folding Title: Novice Folder
Time spent in forums: 4 Months 2 Weeks 6 Days 9 h 2 m 3 sec
Reputation Power: 670
Send a message via MSN to ryon420 Send a message via Google Talk to ryon420
I kind of liked Kicken's method for fighting spam. I'll have to add Kravvitz's...Kravvitz'...I don't know what the possessive of your username should be (really). Erm, anyway, booked marked those links
__________________

Warning, the post above may contain extreme sarcasm, crude language, and code that may confuse amateurs and professionals.


Helpful stuff: Google your question first | Read the rules | How to ask a question
Sites: Philosophorum: "where even the trolls are smart"
"A bad plan is one carved in stone" -- Publilius Syrus


Reply With Quote
  #32  
Old May 2nd, 2008, 12:03 PM
Hammer65's Avatar
Hammer65 Hammer65 is offline
Web Developer/Musician
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2004
Location: Lincoln Nebraska
Posts: 1,922 Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 17 h 16 m 2 sec
Reputation Power: 500
Send a message via AIM to Hammer65
Well the truly enjoyable and recreational way to fight spam is to find a spammer, beat the living crap out them and smash every computer they own. Barring the opportunity to do that...

One thing to note about all this is, that if you come up against someone of equal or greater programming experience and knowledge then you have, you have your work cut out for you. Unless that person is doing it for fun, or has a personal grudge against you or your hoster however, that wouldn't be very common unless there was something about your site or your visitors that was especially attractive to them.

Those people make much more money selling "kits" to less technically oriented spammers and phishers. Depending on how cleverly put together those "kits" are, they may have some ability to adapt to the situation, but not as much as a human would. The people using them, might only have a rudimentary knowledge of HTML. Most of the measures mentioned, for an average site, would work a majority of the time for that reason.
Comments on this post
sizablegrin agrees!
__________________
"Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony! Well, but you can't expect to wield supreme executive power just 'cause some watery tart threw a sword at you! I mean, if I went 'round saying I was an emperor just because some moistened bint had lobbed a scimitar at me, they'd put me away!"

Reply With Quote
  #33  
Old May 2nd, 2008, 01:17 PM
TheJim01's Avatar
TheJim01 TheJim01 is offline
Coconuts migrate?
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Location: http://middle.nowhere.com
Posts: 1,832 TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)TheJim01 User rank is General (90000 - 100000 Reputation Level)  Folding Points: 34954 Folding Title: Starter FolderFolding Points: 34954 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 3 Days 8 h 6 m 28 sec
Reputation Power: 914
While it runs blindly in the face of accessibility, I prefer getting the user to interpret an image. For example:

Then ask the user to identify something about the picture, IGNORING the text within the image, for example: "What shape is the roof?". Since most bots are looking to implement OCR, it will read the text and answer "Blue." Brilliant, bot.

Another way to do it is to make your form two pages. Give the user a key on the first page that they must write down or remember. For example:
  1. Server generates key, saves it, and presents it to the user on form page 1.
  2. User remembers the key, fills out form page 1, and clicks next/continue.
  3. The server serves form page 2, but the page does not contain the key.
  4. The user fills out form page 2, enters the key, and presses submit.
  5. The server checks the key against its saved keys. If the key is good, submit. If not, error out back to the user.
Also easily hackable if the spammer investigates your page before sending in his/her bot, but not for simple spiders.
Attached Images
File Type: jpg captcha.JPG (4.2 KB, 40 views)
__________________

Proud member of the T.S.N.B.U.F.L (tables should not be used for layout) alliance.

"Only use elements for their intended purpose. You wouldn't try to make coffee with a telephone, would you?" -Me

Reply With Quote
  #34  
Old May 2nd, 2008, 01:42 PM
f'lar's Avatar
f'lar f'lar is offline
Senior WeyrLeader
Click here for more information
 
Join Date: Aug 2003
Location: WI
Posts: 3,606 f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level)f'lar User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 11 h 24 m 45 sec
Reputation Power: 589
Send a message via Google Talk to f'lar
I think the key here is that as long as you don't have a big target painted on your back a standard captcha will probably work, and if it doesn't you probably just have to do something a little different so that whatever canned package your attacker is using get's confused.

And the only sites that really have the big targets on their backs are sites with large direct-spam potential: e-mail or blog providers of a sufficient page rank, for example.
__________________
Primary Forums: .Net Development, MS-SQL, C Programming
VB.Net: It's not your father's Visual Basic.

[Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers]

Reply With Quote
  #35  
Old May 2nd, 2008, 01:48 PM
crownjewel82's Avatar
crownjewel82 crownjewel82 is offline
rebel with a cause
Dev Shed God (5000 - 5499 posts)
 
Join Date: May 2004
Location: The Batsh!t Crazy State.
Posts: 5,277 crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 11st Grade (Above 100000 Reputation Level)  Folding Points: 29591 Folding Title: Starter FolderFolding Points: 29591 Folding Title: Starter Folder
Time spent in forums: 2 Months 3 Weeks 2 Days 11 h 54 m 6 sec
Reputation Power: 1682
So. I'm trying to figure out how to explain that any kind of spam prevention at the form/request level is useless when the email address the entry goes to is in plain text on the html page...
__________________
Making teachers cry like babies since 2006. --nicky

paper/xerox/staples zine distro/press - Support the first ammendment. Support independent publishing.

Stupid Things I've Done

Reply With Quote
  #36  
Old May 2nd, 2008, 02:01 PM
Hammer65's Avatar
Hammer65 Hammer65 is offline
Web Developer/Musician
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2004
Location: Lincoln Nebraska
Posts: 1,922 Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Hammer65 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 17 h 16 m 2 sec
Reputation Power: 500
Send a message via AIM to Hammer65
Quote:
Originally Posted by crownjewel82
So. I'm trying to figure out how to explain that any kind of spam prevention at the form/request level is useless when the email address the entry goes to is in plain text on the html page...


In the case of mail header injection, an attacker can use a contact form as a spam relay to send messages to hundreds of recipients, untraceable to them. They can add recipients, alternate subjects and messages and attachments, depending on the degree of vulnerability.

When you publish your email address, then they can certainly send you spam, but that can also be filtered by an effective spam filter. They won't however be able to utilize your server, and the network it's on, to send unlimited spam to others.

So there is some difference.

Reply With Quote
  #37  
Old May 2nd, 2008, 02:01 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Nov 2003
Location: Battle School
Posts: 4,155 Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level)Tann San User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 3 Days 9 h 48 m 18 sec
Reputation Power: 319
Facebook MySpace
Nar it's more than that. Say you are using a widely used system like Joomla, Media Wiki or some popular Forum app that uses a Captcha system. If the robot manufacturer works out the system for one site they essentially work it out for all the sites using that system. Sure their initial attack may be against one site they had a grudge against but the potential for future attacks on other sites is huge.
__________________
-Tann

Reply With Quote
  #38  
Old May 2nd, 2008, 02:17 PM
sizablegrin's Avatar
sizablegrin sizablegrin is online now
Stubborn ol' L'User
Click here for more information.
 
Join Date: Jun 2005
Posts: 2,719 sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 18 h 27 m 27 sec
Reputation Power: 1189
If any of these protective measures were truly effective we wouldn't be receiving spam, would we?

Back to the drawing board.

Oh, incidentally, you super-sharp mofos might like to note how "receive" is spelled. Small point, but if you don't pick up on it I don't trust your most mundane recommendations.
__________________
The population in my hometown has been stable for 50 years. Every time a woman gets pregnant, a man leaves.

Reply With Quote
  #39  
Old May 2nd, 2008, 03:07 PM
fishtoprecords's Avatar
fishtoprecords fishtoprecords is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2007
Location: outside Washington DC
Posts: 586 fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 11 h 48 m 19 sec
Reputation Power: 167
Quote:
Originally Posted by sizablegrin
If any of these protective measures were truly effective we wouldn't be receiving spam


Its much worse that you write. They are not marginally effective. They are at best security theater. They also make it hard for folks with disabilities. So we have reliance on a system that does not work, and makes it hard for a portion of the population to use the system.

They need to back up and fix the basic principals, rather than putting bandages like captchas on a broken system.

Reply With Quote
  #40  
Old May 2nd, 2008, 06:08 PM
sizablegrin's Avatar
sizablegrin sizablegrin is online now
Stubborn ol' L'User
Click here for more information.
 
Join Date: Jun 2005
Posts: 2,719 sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level)sizablegrin User rank is General 3rd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 18 h 27 m 27 sec
Reputation Power: 1189
I would argue that fixing the basic principals, at least in my terms of "fix", is a major felony. Perhaps the principle of "self defense" would hold up, perhaps not.

Reply With Quote
  #41  
Old May 2nd, 2008, 06:55 PM
fishtoprecords's Avatar
fishtoprecords fishtoprecords is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2007
Location: outside Washington DC
Posts: 586 fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level)fishtoprecords User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 11 h 48 m 19 sec
Reputation Power: 167
My fix would be legal, but nearly as hard.

The concept of SMTP is built on trusted networks. It was OK back in 1975 or so, its not justified today.

So we would have to change the fundamental RFCs for email, and while we were at it, we should do something like move to IPv6 which has built in crypto.

I am holding my breath.

Reply With Quote