JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 11th, 2013, 02:28 AM
p1bdk p1bdk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 7 p1bdk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 42 sec
Reputation Power: 0
jQuery - How to prevent users to view more than 10 pages in my website (blog) within 24 hours.

I have tracked some invalid click activity in my Adsense account. A malicious user is coming to my blog from different IP and clicking on my Ads multiple times. This user may be one of my competetor who want to ban me from Adsense. So I want to put a JavaScript cookies on his computer. It is now impossible to track him. Therefor I have decided to put a cookies on users computer and based on the cookies I will block him to view my website for about 24 hours, so that they will unable to click my ads multiple times. I want to allow the user to view only 12 pages of my website, then they will able to view my website after 24 hours. So that invalid activity on my website will decreases. Please help, I don't want to loose my precious Adsense account.

Reply With Quote
  #2  
Old February 11th, 2013, 03:35 AM
Jacques1's Avatar
Jacques1 Jacques1 is offline
pollyanna
Click here for more information.
 
Join Date: Jul 2012
Location: Germany
Posts: 1,877 Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 5 h 32 m
Reputation Power: 813
Hi,

so do you have a question? Or did you just want us to know?

I mean, you do have to realize that your cookie only works if the "attacker" is stupid and also does each click by hand -- which is kind of unlikely. A slightly better idea would be to use multiple and less known techniques like virtual storage and Web SQL. But this again requires the attacker to actually use a browser.

If you're dealing with intelligent people, there's virtually no way to stop them.

Reply With Quote
  #3  
Old February 11th, 2013, 05:31 AM
p1bdk p1bdk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 7 p1bdk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 42 sec
Reputation Power: 0
I want to use this code in my blog. I am very serious to save my Adsense. I know that the attacker may have no knowledge to delete cookies and click in the ads again. So if possible give me this JavaScript code.

Reply With Quote
  #4  
Old February 11th, 2013, 06:52 AM
Jacques1's Avatar
Jacques1 Jacques1 is offline
pollyanna
Click here for more information.
 
Join Date: Jul 2012
Location: Germany
Posts: 1,877 Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 5 h 32 m
Reputation Power: 813
Setting cookies with JavaScript is a well-document standard action. So please take 5 minutes to start up Google and do some reading:

http://www.quirksmode.org/js/cookies.html

If you got concrete questions, ask them. But please don't expect us to be your "code for free" service.

Reply With Quote
  #5  
Old February 11th, 2013, 07:02 AM
p1bdk p1bdk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 7 p1bdk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 42 sec
Reputation Power: 0
It is not a matter of Free, but every one here is for helping each other. I have created a job website, which is free for my visitors. Wikipedia is free. That's why I expect help from each forum members. Thanks you, I like German because Germany is a liberal country and I like liberalism.

Reply With Quote
  #6  
Old February 11th, 2013, 12:03 PM
web_loone08's Avatar
web_loone08 web_loone08 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2008
Posts: 605 web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 16 h 34 m 46 sec
Reputation Power: 69
Quote:
Originally Posted by p1bdk
That's why I expect help from each forum members.


That statement will not get you help; maybe you put that in the wrong context, but no member is paid to be here. They just help each other; out of the kindness of the hearts. So please do not think anyone is required to help you. We do so, because we want to.

But, the closest fix you could have for this issue; is banning IP addresses; that you found to be malicious (either completely banning them from your website or from being able to access you adverts), but if they are using any type of quality software or they are smart enough to use a proxy and/or dump and refresh/renew there own dynamic IP address; then it's going to be a tough go to ban them anyway. I think the HTML5 Storage API, would be the best bet; as Jacques1 stated... approaches like this are less known, but will become more known in the near future and at that time, that approach will no longer work and you will be right back to the the drawing board.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > jQuery - How to prevent users to view more than 10 pages in my website (blog) within 24 hours.

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap