Skip to main content

Track visitors to a specifik url?

Comments

5 comments

  • cPanelLauren
    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
  • danniee
    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
  • PlotHost
    You can just add some PHP code to the page serving that specific URL.
    0
  • danniee
    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
  • PlotHost
    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.