View Single Post
Old 2006-12-01, 01:26 PM   #8
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
Quote:
Originally Posted by Beenie View Post
When you enter the site it put in a code similar to this at the top
Code:
<script>
<!--
document.cookie='atref=noref$#; path=/;'
// -->
</script>
I am using the script on www.acalinks.com where you can check out a live example (just view source).

I do have webalizer but oh my god that seems so outdated and I can only see the top30 referers by URL (not domain)
Cookies are a bad idea. Text that says "script" in the source is also a bad idea.

The most efficient way to do this is to get a stats program on the machine that affects everything globally. If you can't do that, consider executing a php file with an image call, like this:

Code:
<img src="path/to/trackingscript.php">
If you do it this way the script will get executed, but you're less likely to have anything on the page that might be considered an active threat. I haven't done it myself (I have stats on my box) but I've heard this is an acceptable practice by many.
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote