Skip to content

Protect your site from spammers with reCAPTCHA

Link To Full Story: Google Webmaster Central Blog

Shared by JohnH
Did you know that Google acquired ReCaptcha?
http://poptech.org/popcasts/luis_von_ahn_harnesses_brainpower
Webmaster Level: All

If you allow users to publish content on your website, from leaving comments to creating user profiles, you’ll likely see spammers attempt to take advantage of these mechanisms to generate traffic to their own sites. Having this spammy content on your site isn't fun for anyone. Users may be subjected to annoying advertisements directing them to low-quality or dangerous sites containing scams or malware. And you as a webmaster may be hosting content that violates a search engine's quality guidelines, which can harm your site's standing in search results.

There are ways to handle this abuse, such as moderating comments and reviewing new user accounts, but there is often so much spam created that it can become impossible to keep up with. Spam can easily get to this unmanageable level because most spam isn’t created manually by a human spammer. Instead, spammers use computer programs called “bots” to automatically fill out web forms to create spam, and these bots can generate spam much faster than a human can review it.

To level the playing field, you can take steps to make sure that only humans can interact with potentially spammable features of your website. One way to determine which of your visitors are human is by using a CAPTCHA , which stands for "completely automated public Turing test to tell computers and humans apart." A typical CAPTCHA contains an image of distorted letters which humans can read, but are not easily understood by computers. Here's an example:


You can easily take advantage of this technology on your own site by using reCAPTCHA, a free service owned by Google. One unique aspect of reCAPTCHA is that data collected from the service is used to improve the process of scanning text, such as from books or newspapers. By using reCAPTCHA, you're not only protecting your site from spammers; you're helping to digitize the world's books.

Luis Von Ahn, one reCAPTCHA's co-founders, gives more details about how the service works in the video below:


If you’d like to implement reCAPTCHA for free on your own site, you can sign up here. Plugins are available for easy installation on popular applications and programming environments such as WordPress and PHP.

Posted by Michael Wyszomierski, Search Quality Team

WordPress: How to easily create a Thematic child theme

Link To Full Story: www.catswhocode.com

In this tutorial, I’m using the Thematic theme framework, a GPL licenced theme brought to you by Ian Stewart. Thematic is in my opinion very powerful and optimized. Therefore, you may be interested in taking a look at other WordPress frameworks as well, such as Hybrid, Headway, Thesis or WP Framework.

Creating the child theme

Right now, you should know what a Theme Framework is and why you should use them. But enough theory for now, let’s get ready to create our own child theme for Thematic.

Download Thematic

Of course, the first thing to do is to download the Thematic Theme Framework. Once finished, unzip the file on your hard drive.

If you want, you can activate Thematic and take a look at your blog. Thematic can be used as a parent theme, or in standalone mode. Without a child theme, Thematic is ready to use and features a really gorgeous typography. There’s no images or even colors, so that you can create your child theme and make Thematic fit your needs, either in its look or functionality.

SpamAssassin 3.3 Changes the Rules | Web Builder Zone

Link To Full Story: css.dzone.com



SpamAssassin has a wide array of spam-killing weapons at its disposal.  It uses DNS and checksum based spam detection, Bayesian filtering, external programs, and online databases.  Spam scoring determines if a message is marked 'ham' or 'spam' (a negative overall score is spam and positive overall is ham).  The program is written in Perl and it can run as a standalone application, a subprogram of another application, or as a client that communicates with a daemon.  Even if SpamAssassin is used as a system-wide filter, it can still be configured by each user for their own personal mailbox preferences.

Scheduling Tasks with Cron Jobs | Nettuts+

Link To Full Story: net.tutsplus.com

Cron Jobs are used for scheduling tasks to run on the server. They're most commonly used for automating system maintenance or administration. However, they are also relevant to web application development. There are many situations when a web application may need certain tasks to run periodically. Today we are going to explore the fundamentals of Cron Jobs.

PG

Author: Burak Guzel

Burak Guzel is a full time PHP Web Developer living in Arizona, originally from Istanbul, Turkey. He has a bachelors degree in Computer Science and Engineering from The Ohio State University. He has over 8 years of experience with PHP and MySQL. You can read more of his articles on his website at PHPandStuff.com and follow him on Twitter here.

Definitions

First let's familiarize ourselves with the terms related to this subject.

"Cron" is a time-based job scheduler in Unix-like operating systems (Linux, FreeBSD, Mac OS etc...). And these jobs or tasks are referred to as "Cron Jobs".

There is a cron "daemon" that runs on these systems. A daemon is a program that runs in the background all the time, usually initiated by the system. This cron daemon is responsible for launching these cron jobs on schedule.

The schedule resides in a configuration file named "crontab". That's where all the tasks and their timers are listed.

Why Use Cron Jobs?

Server admins have been using cron jobs for a long time. But since the target audience of this article is web developers, let's look at a few use cases of cron jobs that are relevant in this area:

  • If you have a membership site, where accounts have expiration dates, you can schedule cron jobs to regularly deactivate or delete accounts that are past their expiration dates.
  • You can send out daily newsletter e-mails.
  • If you have summary tables (or materialized views) in your database, they can be regularly updated with a cron job. For example you may store every web page hit in a table, but another summary table may contain daily traffic summaries.
  • You can expire and erase cached data files in a certain interval.
  • You can auto-check your website content for broken links and have a report e-mailed to yourself regularly.
  • You can schedule long-running tasks to run from a command line script, rather than running it from a web script. Like encoding videos, or sending out mass e-mails.
  • You can even perform something as simple as fetching your most recent Tweets, to be cached in a text file.

10 baby steps to install Memcached Server and access it with PHP | Web Developer Juice

Link To Full Story: www.webdeveloperjuice.com

Thinking of implementing caching for your php application , you are at a right place. Just in 10 simple (copy and paste) steps you can install and access Memcached Server.

Step1: Install libevent ,libmemcached and libmemcached devel (dependency)

1
2
yum install libevent
yum install libmemcached libmemcached-devel
.

Step 2: Install Memcached Server

1
yum install memcached

Build Your Own Social Networking Interface With Twitter4J | Javalobby

Link To Full Story: java.dzone.com

With all the buzz around Twitter these days, it's no surprise that we see new clients popping up everywhere - on our desktops, the web and as mobile applications. While some applications are done quite well, it can be difficult to find the one that has the features that you want. But like all software developers, you have a choice - you can go ahead and build one of your own. That's where  Twitter4J fits in.

I first became aware of Twitter4J as I was working on my Twitter client using ECF.  No matter what feature I needed from Twitter, it was supported in Twitter4J. Of course, you can integrate into any Java application from version 1.4.2, and there's also support for the Android platform. In this article i'm going to give a brief overview of how to use the framework to connect to, and use, Twitter.  With the basic building blocks that the library provides, you can create your own rich Twitter interface.

Getting Started

It couldn't be easier to get going with this library - simply download the latest version, and add the core library to your classpath.

Two thumbs up for the Zend Framework Nerds.

Link To Full Story: KILLERPHP.COM

microphone-podcast-icon

Hi,

I’ve been busy with things and so not too many updates lately. Not to worry thought, we have a brand new course and lots of free videos coming out soon on advanced MySQL.

In the following podcast (it was a video but I changed my mind …), I talk about the pragmatism of the Zend Framework dudes.

MP3: zendframework-and-doctrine

Short and sweet.

Stefan Mischook
www.killerphp.com

Wait till I come! » Finding the current location by IP and with the W3C Geo API

Link To Full Story: www.wait-till-i.com

Here’s how this works:

You can guess the location of a user by their IP and Rasmus Lerdorf wrote a nice API to do that at http://geoip.pidgets.com/. Using that, you can read the IP in PHP and call the API with cURL:

if ($_SERVER['HTTP_X_FORWARD_FOR']) {
    $ip = $_SERVER['HTTP_X_FORWARD_FOR'];
  } else {
    $ip = $_SERVER['REMOTE_ADDR'];
  }
  $url = 'http://geoip.pidgets.com/?ip='.$ip.'&format=json';
  $ch = curl_init(); 
  curl_setopt($ch, CURLOPT_URL, $url); 
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
  $output = curl_exec($ch); 
  curl_close($ch);
  $data = json_decode($output);
  $lat = $data->latitude;
  $lon = $data->longitude;

Using Web Services with Data Centric Development in Flash Builder 4 beta | RIA Zone

Link To Full Story: ria.dzone.com

Data-centric development is an exciting new Rapid Application Development (RAD) feature in Flash Builder 4 beta 2, which helps traditional web and novice Flex developers to quickly build rich data-centric Flex applications that fetch data from various back-ends including ColdFusion, PHP, BlazeDS, LiveCycle Data Services ES, web services, and HTTP services.

Because web services are such a popular mechanism for exchanging data between different applications and platforms on the Internet, Flash Builder 4 provides easy and efficient ways to import, explore, and use web services. Through its unified workflow wizards, Flash Builder 4 helps developers quickly build Rich Internet Applications that leverage existing corporate or public service infrastructures, including web services.

In this article, I will demonstrate these capabilities by showing you how to build an application (see Figure 1) that uses Zenfolio's web service to display photos.

The sample application

An API for the Web: Learning YQL | Nettuts+

Link To Full Story: net.tutsplus.com

What is YQL?

Web apps and web services multiply like rabbits. They’re all fun to play with (like rabbits) and fun to integrate into other projects (unlike rabbits). But learning a new API every other day isn’t feasible or fun. And that’s the problem the Yahoo Query Language (YQL) is out to solve.

Think of YQL as the API for the web, the one API to rule them all. It’s not a hard one to learn, so let’s get you up to speed right now!

How do I use it?

Yahoo has put together a pretty nice console for us to flex our muscles with YQL. Load up that console, and let’s explore it.

In the right sidebar, you can choose a “table” in the “database”; a sample query will show up in the statement box at the top. To the right of the statement box, you can see what the corresponsing REST query would. Below, you have the data returned from the query; you can receive data in either XML or JSON.

So, let’s try a query!