Forum Moderators: martinibuster

Message Too Old, No Replies

Can someone create a script?

         

PalX

8:01 am on May 6, 2006 (gmt 0)

10+ Year Member



I was thinking about a script that will stop serving Ads to an IP in case the IP clicked on the Ads more then X times in the past 24 hours. Or something similar to this.

Im sure if someone managed to create such a script, he will first become a hero and second will make a fortune by selling this script!

The question is, is it possible to create such a script? (im not a coder so no idea!)

I Will Make It

8:15 am on May 6, 2006 (gmt 0)

10+ Year Member



Yes, a script like that is possible.
And it's simple too!
It's about 4-5 lines..

But would it work?
What about all the people that are surfing the net
with dynamic ip-addresses?

hal12b

2:58 pm on May 6, 2006 (gmt 0)

10+ Year Member



Are your pages in ASP or PHP?

this should work for ASP

<% if Request.Servervariables("REMOTE_HOST") = "the ip address" then
response.redirect "any web site"
else

end if %>

If you need it for PHP or slight modifications, let me know.

Key_Master

3:18 pm on May 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I wrote a JavaScript that does this. It uses cookies to track clicks and SSI to control ad delivery (based on the cookies). It works extremely well.

Hard to make a fortune off of a free script though. :)

jetteroheller

3:32 pm on May 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



create such a script, he will first become a hero and second will make a fortune by selling this script

I do not think so.

More than 50% of my revenues are AdLinks.
Clicks on AdLinks can not be controlled by the script.

So the whole thing makes no sense to me.

barns101

3:33 pm on May 6, 2006 (gmt 0)

10+ Year Member



But how do you record clicks on AdSense ads without altering the JavaScript (and hence breaking the Ts & Cs)?

Key_Master

3:49 pm on May 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Barns101- Really long thread here that explains it all. It doesn't interfere with clicks or the AdSense JavaScript. AdSenseAdvisor ok'ed it in this post.

[webmasterworld.com...]

jetteroheller,

I guess based on your post you assume everbody uses link units. So we might as well all give up on tracking clicks. No data is better than some data in your opinion.

FWIW, any good click tracker will detect the initial click on link units. In fact, I've found click trackers to be very close to the stats givin by Google- ~95% accurate.

Vastio

5:13 pm on May 6, 2006 (gmt 0)

10+ Year Member



But would it work?
What about all the people that are surfing the net
with dynamic ip-addresses?

Yes, it would work, and it's been done. But rather than doing it by IP address, which would involve using a database, you could just set a cookie once an ad is clicked. Then, if the cookie value is greater than, for example, 2 in a 24 hour period, no ads will be shown for that user.

[edited by: martinibuster at 4:20 am (utc) on May 9, 2006]
[edit reason] Removed Link Per TOS & Forum Charter [/edit]

xtreem

7:57 am on May 7, 2006 (gmt 0)

10+ Year Member



Ive taken a look at that script posted in that 'library' thread. It doesnt work with IE7 however, due to default settings of disabling window status updates via script. Which means google adsense ads do not put the 'go to www.url' in the status bar, and the ad cannot be logged.

hal12b

2:33 pm on May 7, 2006 (gmt 0)

10+ Year Member



Cookies are not that great to use. Anybody can clear cookies at any given time.

moonkey

2:52 pm on May 7, 2006 (gmt 0)

10+ Year Member



AdLogger seems don't work for me, it reports as low as 5% of totally generated clicks.

jomaxx

4:09 pm on May 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It doesnt work with IE7 however, due to default settings of disabling window status updates via script.

Interesting. I just tested it with IE7 and you're right, it doesn't seem to work. Of course the Javascript hack never worked with Firefox or Opera either.

This doesn't bode well for the ability to log AdSense clicks in the long run.

I Will Make It

9:09 pm on May 7, 2006 (gmt 0)

10+ Year Member



I don't think cookies would be the best solution, it has already been said in this thread, but here it is again: ANYONE can at ANY TIME delete their cookies. Webmasters who are into the idea of screwing up a competitors adsense account would know this, and it would be no problem to "fool" your script.

I think a DB would do the job, but of course, this DB would've become very large and you would have to go an dump it from time to time. Of course this could have been done by the PHP script as well, but I don't know exactly how much job you should put into this..

Another thing would be to put the whole script inside a $_SESSION variable, and save the sessions into the server, this would prevent the users for controlling the script by deleting their cookies.

(Personally I would've found out my competitors ip-addresses, and then just ban those from viewing my entire site) - But that's just me ;)

Key_Master

9:43 pm on May 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ANYONE can at ANY TIME delete their cookies
ANYONE can at ANY TIME change their ip
ANYONE can at ANY TIME use another computer
ANYONE can at ANY TIME move their location
ANYONE can at ANY TIME change their operating system

This forum has lost it's ingenuity and problem solving capability. There is a lot of "can't do attitude" around here. Maybe I'm wrong and it's the onslaught of AdSense newbies that have diluted the intellectual pool here at WebmasterWorld. That's one reason why I don't post information here that would probably save a lot of you thousands of hours of headaches. Just a heads up, the black hatters don't have that attitude and this is why they are so successful at what they do.

Anyhow, it is possible to record clicks through methods other than window.status (it's already being done). Two, delete cookies all day if you want, it wouldn't work with my software. Using cookies to track a user beyond a user session is useless anyhow. Most click fraud is perpetrated rapidly in succession. This is what you want to catch.

Relying on $_SESSION = (gave me a chuckle) Fantasy world
Relying on competitors IP = Fantasy world

PS- I'm looking to contribute to a nice tech forum with a "can do attitude". If anyone has a suggestion, please sticky me.

Vis3R

10:09 pm on May 7, 2006 (gmt 0)

10+ Year Member



<SNIP>

and let people try to help with what they know. We're not all in tech stuff, not everybody is a programmer or understands all this things you're talking about, but they're still trying to help, unlike you. Who cares what your program can do, if you don't wanna help others to resolve the problem, you can stick that program in ... you know where.

[edited by: martinibuster at 8:41 pm (utc) on May 8, 2006]
[edit reason] TOS # 4 & 19. [/edit]

Key_Master

10:25 pm on May 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Vis3R, I've helped out many on this board over the years. I'm not saying you are into tech stuff. This is a thread regarding a programming question.

PS: Be careful what you say. I could send you a little something too, and remember, you're not a technical type of guy.

You solve problems by tackling them head on. You don't give up because somebody says it's impossible. You work together to find a solution. How hard is that?

Vis3R

10:33 pm on May 7, 2006 (gmt 0)

10+ Year Member



I am into tech. And yeah you should ask yourself how hard is that to help out. If you know stuff they've missed out, why not help them? As you've resolved this problem for you, you could share your knowledge with others and show them it's possible in other ways. Not just saying it's possible, i did it, and i don't care if you'll be able to figure it out.

Key_Master

10:52 pm on May 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry Vis3R, you haven't been around long enough to understand how it works around here. You will soon enough though I guess. And by the way, I've already posted some possible steps that can be taken in another thread.

[webmasterworld.com...]

Face it guys, you can't trust anything on the net these days. You can't trust your logs to be 100% accurate, you can't trust your computer OS or browser to be 100% secure, you can't trust every hit to your site is initiated by a real live human being, and yes, you can't trust ad click trackers to be 100% accurate.

But that doesn't mean you can't narrow the odds in your favor.