View Single Post
Old 03-25-2011, 12:19 PM  
robber
Web Developer
 
Industry Role:
Join Date: Jan 2011
Location: UK
Posts: 264
You need to watch the script as:

Quote:
On the api.php:

// make sure that the $_POST is coming from your domain and that you are not being
// spammed.
if ( isset( $_POST['clicked_link'] ) && !empty( $_POST['clicked_link'] ) ){

// insert it into a database
//

}
could be easily spammed by being posted to by a cURL process :D, you need some sort of check for the requester to make sure it is your server

Otherwise, nice bit of code

Rob
robber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook