Feeds:
Posts
Comments

Archive for the ‘hosting’ Category

Few years ago, I was looking for a simple way to embed a captcha solution on one of my sites (that was hosted on a shared IIS web-server). I looked all over for a captcha solution that won’t require installing an external DLL or connecting to a remote captcha server that will slow down the process (such as reCaptcha).

Back then I was coding in ASP3, so I decided to write my own class to do the job, and I named it “Captchavator”.

I’ve planned to release it to the public… but never did (I just forgot about it).

Last night, while I was browsing my HDD, I stumbled upon the Captchavator folder and the decided it’s time to make a move 馃檪

You might say that ASP 3 is obsolete… and I’ll say “true, true…”, but since there are still many old sites out there, I think that even even if one person will find this useful, then it was worth releasing…

So what’s so special about this solution?

  • It requires your web-server to support ASP 3, Javascript and nothing more
  • Does not require installing any com/activex object on the server
  • Does not require storing images on the server
  • Developers can generate their own captcha characters using the included “painter” tool
  • Does not use any database to operate
  • Can be used with any shared hosting IIS web server

How can you use it?

The process is very simple and involves 4 simple steps…

Step 1 – Include the captcha class in your ASP page.

Step 2 – Create an instance of the Captchavatorobject

Set objCaptcha = New Captchavator

Step 3 – Generate a new captcha (pass the length of the requested captcha, in the following example, I’ve asked for a 6 chars long captcha).

objCaptcha.CreateCaptcha(6)

Step 4 – Print the captcha

objCaptcha.Print()

To validate the captcha, following these steps:

Step 1 – Include the captcha class in your ASP page.

Step 2 – Create an instance of the Captchavatorobject

Set objCaptcha = New Captchavator

Step 3 – Check if the passed POST/GET parameter matches the captcha

objCaptcha.Validate( Request(“txt1”) ) ‘will return true if validated successfully!

What’s included in the archive?

captcha.asp – This is the main Captchavator class

captcha_painter.asp – Use this file to generate your own captcha characters. Please note the painter only works with Internet Explorer (I’m too lazy to fix it to work with FF).

demo.asp – Demonstration of the complete process

I sure hope you’ll find this useful….

Try an online demo:聽 http://www.isralet.com/files/captcha/demo.asp

Download the Captchavator archive from here:
http://www.isralet.com/files/captcha/Captchavator v1.2 – ASP 3 Captcha.rar

Feel free to ask any questions by leaving a comment below.

Advertisements

Read Full Post »

讛诪诇爪讛 注诇 砖专转 讘讞讜”诇 讝讜诇 讜讗诪讬谉 诇讗讬专讜讞 讗转专 讞讚砖

诇讗讞专讜谞讛 讛转讞诇转讬 诇注讘讜讚 注诐 讞讘专讛 讘讞讜”诇, 讘砖诐 Host Monster,讛诪住驻拽转 砖专讜转讬 讗讞住讜谉 讜讗讬专讜讞 诪爪讜讬讬谞讬诐. 诪讞讬专 讞讘讬诇转 讗讬专讜讞 讘住讬住讬转 讛讬讗 5.95$ 诇讞讜讚砖 讜讛讬讗 讻讜诇诇转 讻诇 诪讛 砖专拽 讗驻砖专 诇讞诇讜诐 注诇讬讜, 讜讘诪讞讬专 砖讜讜讛 诇讻诇 谞驻砖.

讘讞讘讬诇讛 讛讘住讬住讬转 讻诇讜诇讬诐:

  • 讚讜诪讬讬谉 诇讘讞讬专转讱 注诐 住讬讜诪转 .COM
  • 谞驻讞 讗讞住讜谉 讘诇转讬 诪讜讙讘诇 (讗谞讬 讻专讙注 诪讗讞住谉 讘砖专转 砖诇讬 拽专讜讘 诇-200 讙讬讙讛, 诇诪注砖讛 讗谞讬 诪谞爪诇 讗转 讛砖专转 讙诐 讻讙讬讘讜讬 讗讜谞诇讬讬谉).
  • 转注讘讜专讛 讘诇转讬 诪讜讙讘诇转 (住驻拽讬诐 专讘讬诐 诪讙讘讬诇讬诐 讗转 谞驻讞 讛转注讘讜专讛, 讻讗谉 诇讗 诪讙讘讬诇讬诐).
  • 拽讬砖讜专 诇诪住驻专 讘诇转讬 诪讜讙讘诇 砖诇 讚讜诪讬讬谞讬诐 诇诇讗 转讜住驻转 转砖诇讜诐!
  • 诪住驻专 讘诇转讬 诪讜讙讘诇 砖诇 讞砖讘讜谞讜转 讚讜讗专 (讻讜诇诇 转诪讬讻讛 讘POP)
  • 砖专转讬 UNIX
  • 拽讬砖讜专 诇诪住讚 谞转讜谞讬诐 诪住讜讙 MYSQL 诇诇讗 转讜住驻转 转砖诇讜诐
  • 转诪讬讻讛 讟诇驻讜谞讬转 – 24 砖注讜转 讘讬诪诪讛.

注讚 讻讛 讛转专砖诪转讬 诇讟讜讘讛 诪讛讝诪讬谞讜转 讜诪拽爪讘 讛转拽砖讜专转 注诐 讛砖专转讬诐 (砖讗讙讘, 诪诪讜拽诪讬诐 讘讗专讛”讘).
讘谞讜讙注 诇砖讬专讜转 诇拽讜讞讜转 / 转诪讬讻讛, 谞讬转谉 诇拽讘诇 砖讬专讜转 讘讟诇驻讜谉 讗讜 讘诪讬讬诇. 讗讱 拽讬讬诪转 讚专讱 谞讜讞讛 (讜讝讜诇讛 讬讜转专) – 讘讗诪爪注讜转 爪’讟 讗讜谞诇讬讬谉 注诐 谞爪讬讙 (讛讙讬砖讛 讛讬讗 讚专讱 讛讚祝 讛专讗砖讬 讘讗转专 讛讞讘专讛). 讝讜讛讬 讚专讱 谞讜讞讛, 讞住讻讜谞讬转 讜讬注讬诇讛 诇驻转专讜谉 讘注讬讜转 讜诇拽讘诇转 注讝专讛 讘讗讜驻谉 讛诪讛讬专 讘讬讜转专).

注讚 讛讬讜诐 讛转谞住转讬 讘诪住驻专 讞讘专讜转 讗讬专讜讞 砖专转讬诐 讗讱 注讜砖讛 专讜砖诐 砖讘- Host Monster 讛转诪讜专讛 讘讬讞住 诇诪讞讬专 讛讬讗 讛讙讘讜讛讛 讘讬讜转专.

讗讙讘, 谞讬转谉 讙诐 诇讘讟诇 讗转 讛注住拽讛 转讜讱 30 讬讜诐 讜诇拽讘诇 讛讞讝专 讻住驻讬 诇诇讗 爪讜专讱 讘诪转谉 讛住讘专 讻诇砖讛讜, 讻讱 砖讗驻砖专 诇谞住讜转 讜讗诐 诇讗 诪转讗讬诐 讗讝 诇讘讟诇. 讗讝, 讗讬谉 诪讛 诇讛驻住讬讚…

讻转讜讘讜转 谞诇讜讜转:
www.hostmonster.com

Read Full Post »