yes this is possible. but you may see how many has accessed your site by a different URL in local domains. this has been left so because lots of sites are multi-domain (for instance www.somehost.com and somehost.com point to one and the same). and it is useful to know how people like to access your site.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At first; sorry for my english, I hope you understand me!
I've added the code snippet to my homepage. In this code, you call the url http://sampledomain/phpcounter/?name=mydomain to count the visits. The code snippet is on mydomain.
What when I add the codesnippet to a homepage on otherdomain and call the the same url with name=mydomain.
I've made tests and I see that the visits are count although the url was called from otherdomain.
Is it possible to prohibit this?
yes this is possible. but you may see how many has accessed your site by a different URL in local domains. this has been left so because lots of sites are multi-domain (for instance www.somehost.com and somehost.com point to one and the same). and it is useful to know how people like to access your site.