I'm actually not sure where this question belongs.
I'm developing a guest book for my web site and am concerned about security. I don't want a bunch of spam or nonsense written to my guest book by way of some automated nasty-ware.
Typically the security I see uses images of letters and numbers that the visitor must duplicate before access is granted.
The way I'm envisioning doing this is through an array of images that rotate on the web site and a parallel array of what the decryption is. Seems simple enough (although I haven't started coding yet, and we all know how perceived simplicity can change as a project is fleshed out).
Ok finally, here's my question.
Why are images used?
Using JavaScript I can easily render a random string of characters to the browser that won't show up in the html or be available through "View source" and authenticate it also using JavaScript (hmm I have to think a bit about that authentication..) before it is submitted.
Has anyone out there tried this approach? All of my db backed apps have been behind firewalls with my company, so this is my first foray into the outside world and I want to do my best to be prepared.
TIA
Ken
Loading
Roei BarPosted Sep 6, 2009, 2:12 AM
for example by using Paros as a proxy, i can hold the js command and manipulate the request code
Ken BarrettPosted Sep 8, 2009, 9:52 AM
TIA
Ken
Ken BarrettPosted Sep 5, 2009, 6:33 PM
Here is a test html page I whipped together to verify this. Please give your opinions.. I much value them.
Check this :
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
content="text/html; charset=iso-8859-1" />
content="Ken Barrett" />
Enter the letters above here
onclick="evalSecure();" />
Ken BarrettPosted Sep 5, 2009, 5:52 PM
If I use an external javascript file so it can't be seen, that looks something like this :
function setSecure() {
var s = document.getElementById('secure') ;
var a = ['A','B','C','D','E','F','H','J'] ; // just a subset of the alphabet for testing purposes
var word = "" ;
for(var i=0 ; i<5 ; i++) { // a 5 digit security code
var num = Math.floor(Math.random()*9+1) ;
word += a[num] ;
}
s.innerHTML = word ;
and the html document has this element :
Wouldn't that work?
The problem I see is the verification process...
Roei BarPosted Sep 5, 2009, 5:36 PM