How To Use Death By Captcha In Java With URL Captcha Images

When I started implementing Death By Captcha, I checked their documentation and some sample code so my coding will speed up once I get an idea how to use their service.

It is actually very simple but the sample code does not involve submitting captcha images in URLs. I did not want to save the captcha images then upload to them because that will take time.

If the captcha you are involved with has a first answer first serve situation, then you would be out of luck because saving the captcha image, uploading it and using Death By Captcha‘s service takes time.

Not that much, but even losing a few seconds is already big.

Their API does support submitting URL captcha images but the problem then is that if you get an incorrect answer, there is no way for you (or them) to know that the answer sent back to you was incorrect because they do not keep such history when it comes to image URLs.

Take this as a risk. If you really want to have some sort of history recorded whenever you use their service, then you are better of submitting physical files to them.

Anyway, in case you are interested with image URLs submitted rather than physical files, here is my class utility method that does just that.

Donations appreciated. Every little $ helps. Or click Google +1.

How To Change The WordPress Home URL Manually

To change the values of WP_HOME and WP_SITEURL manually in WordPress, look for the file wp-config.php then add these two lines anywhere in your code (I suggest you place these at the top).

That should force your WordPress site to use those urls as its home urls rather than updating them in the database. This solution is quicker.

Donations appreciated. Every little $ helps. Or click Google +1.

How To Set Two Blog URLs For WordPress

Setting a blog URL in your WordPress blog is restricted to only one URL because this will be stored in the database and WordPress will look the value up whenever your blog gets accessed. Unlike blogspot/blogger wherein if you buy a new domain name, the blogspot URL and its links remain intact, WordPress does not work that way. If you managed to map a new domain to your existing WordPress blog, only the root URL will take effect while the rest of its internal links reflect the value of the blog URL stored in the database.

The only solution would be to manually add code in the WordPress PHP file wp-config.php and override the default value for WP-HOME.

Donations appreciated. Every little $ helps. Or click Google +1.

Related Posts Plugin for WordPress, Blogger...