I'm rewritting a link tracker. You write your HTML urls you wish to track so they point to:
After it logs the URL, it adds the statistics (ip, time, number of clicks, etc) then it redirects to the URL.
That's done and it works.
I want to make it more secure where only links called from the domain where the tracker is on will be executed. This is to say, I don't want YOU to be able to make a link pointed to the tracker on my server and add your useless junk to my database.
I know most people wouldn't do that but there's always those people around trying to screw you up, you know?
HTTP REFERRER doesn't work for some reason, it's not secure anyway. I do NOT want to be forced to predeclare "safe" URLs in the script and check on those. I want it to be setup where I can just make a standard HTML link call on my page and if it's pushed, it automatically sets itself up in my database.
Someone mentioned to use a "cryptographic hash" or something? Didn't know what that meant.
So I need ideas on how to make it so only links on my domain can pass info to the tracker.
Thank you!
After it logs the URL, it adds the statistics (ip, time, number of clicks, etc) then it redirects to the URL.
That's done and it works.
I want to make it more secure where only links called from the domain where the tracker is on will be executed. This is to say, I don't want YOU to be able to make a link pointed to the tracker on my server and add your useless junk to my database.
I know most people wouldn't do that but there's always those people around trying to screw you up, you know?
HTTP REFERRER doesn't work for some reason, it's not secure anyway. I do NOT want to be forced to predeclare "safe" URLs in the script and check on those. I want it to be setup where I can just make a standard HTML link call on my page and if it's pushed, it automatically sets itself up in my database.
Someone mentioned to use a "cryptographic hash" or something? Didn't know what that meant.
So I need ideas on how to make it so only links on my domain can pass info to the tracker.
Thank you!