how to prevent autosurf, PTR, PTC etc?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

how to prevent autosurf, PTR, PTC etc?

Post by m2babaey »

Hi
as you know i pay users for their articles when they are viewed, so i need to prevent cheaters from displaying their articles using autosurfs, paid to read and paid to click programs.
how do i do that?
I count the number of views. so i also need to stop the count function as well as detedting cheaters.
thanks
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

Post by gurjit »

i've done something similar before but in coldfusion, which was a advertising banner software.

What I did was to store a cookie on the computer with todays date. If the cookie existed, I checked the date against todays date.

If it was less than todays date add 1 to the count and store IP in database table, otherwise ignore.

Some browsers have cookies turned off. So you need to store the IP number of the computer to a database table and check the database table to see if that IP exists if no cookies are found.

Hope this helps
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Post by m2babaey »

Thanks for your reply.
it seems that this comes useful for not allowing writers read their own articles. I will do that by their IPs.
I need to detect those who submit their article links to autosurf services so lots of people will visit that url.
How is Google detecting autosurf users to ban their adsense, for example?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

I should add that IP logging should not be relied upon soley because it's too easy to obtain different ip addresses (sometimes even unknowingly).
Post Reply