View Single Post
02-14-2009, 08:29 PM
#18
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

Originally Posted by Sahil View Post
Ah I see what you mean. Adding a feature so if a user rolls over the image it'll link to google.com though, and not gary mardell

Anyways, if a user really wants to fake their ranking, they'll find a way no matter what.
Not if you insert the domain URL into a database, and use the ID:
http://urlrate.com/embed/1234.gif

Then they can't fake it, you can also check if the referrer address is the same as the URL for that ID, if it isn't you can return a "FAKE IMAGE" instead of the site rating. And instead of running all those queries again, insert the site value, rank, etc in the row instead of having to regenerate the image every time. Hell, you can even possibly save that image in /embed/images/1234.gif and just check if there is already an image for that site, and return that, and don't even do a database call.

Also: http://urlrate.com/index.php?url=htt...aweirdtld.this , you should check the tld before anything.