Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi all,

Is there any way to restrict website for those visit more than 3 times in per day.

using asp.net with c#.


thanks in advance
Posted
Comments
F-ES Sitecore 25-Aug-15 11:45am    
Not reliably, no. You could store a visit count in a cookie but they could delete\amend the cookie. You could hook it off their IP address but that might affect people using proxy servers. The only reliable way would be if you supported some kind of authentication, and you'd log the access against the user. The next problem is what you do define as a "visit"? You would have to say that a set time between requests constitutes a new visit.
Sergey Alexandrovich Kryukov 25-Aug-15 13:13pm    
Agree. Additionally, such kind of "functionality" would be quite an abuse. I wonder who would ever interested in using such site.
See also my post Unhappy Inquirer or Is the Abuse the Main Purpose of Programming?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900