Track visitors to a specifik url?
Hi,
The Visitors feature is very helpful and displays who visits specific links with info about IP, user agent and time etc. Is it possible to set it up so that you are notified whenever someone visits a specific link? For security reasons I want to keep track of who visits a certain url.
-
Hi @danniee While stuff like awstats and webalizer will show you when someone will access a certain link but there's nothing native to cPanel as far as I am aware that will notify you. There are solutions for this like URL filtering associated with many firewall appliances. There are also opensource solutions like 0 -
Hi and thank you for your kind help. The reason is I want to track competitors who will be trying to find specific url:s that I am trying to hide (only for Google's eyes). I will take a look at the links you have provided and see if I can find a solution. Thank you :) 0 -
You can just add some PHP code to the page serving that specific URL. 0 -
You can just add some PHP code to the page serving that specific URL.
Interesting! I don't know php but I'll try to see if I can find a programmer. Thank you ;)0 -
Here is some PHP code. To test it create a new PHP file - test.php for example, add the code, save and access it in your web browser. You will get an email with some info - IP, browser details, time, URL.. ; $url = $_SERVER['REQUEST_URI'>; $browser = $_SERVER['HTTP_USER_AGENT'>; $ref = $_SERVER['HTTP_REFERER'>; $time = date('Y-m-d H:i:s', $_SERVER['REQUEST_TIME'>); $message = $ip."\n".$url."\n".$browser."\n".$ref."\n".$time; mail('example@example.com', 'new visitor', $message); ?>
0
Please sign in to leave a comment.
Comments
5 comments