Hur kan man göra för att se till att folk inte "missbrukar" denna räknare?
<html>
<%
Set File = Server.CreateObject("Scripting.FileSystemObject")
Set Edit = File.OpenTextFile(Server.MapPath("counter.txt"), 1)
antal = Edit.ReadLine
Edit.Close
antal = antal + 1
Set Edit = File.OpenTextFile(Server.MapPath("counter.txt"), 2)
Edit.WriteLine antal
Edit.Close
%>
<%=antal%>
</html>
<html>
<%
Set File = Server.CreateObject("Scripting.FileSystemObject")
Set Edit = File.OpenTextFile(Server.MapPath("counter.txt"), 1)
antal = Edit.ReadLine
Edit.Close
antal = antal + 1
inget = antal + 0
Set Edit = File.OpenTextFile(Server.MapPath("counter.txt"), 2)
If Request.Cookies("haha") = "1" Then
Edit.WriteLine inget
Else
Edit.WriteLine antal
Response.Cookies("haha") = "1"
Response.Cookies("haha").Expires = "December 1, 2001"
End If
Edit.Close
%>
<%=antal%>
</html>