{"id":1911,"date":"2022-11-16T13:09:25","date_gmt":"2022-11-16T18:09:25","guid":{"rendered":"https:\/\/www.tracemyip.org\/learn\/?post_type=ht_kb&#038;p=1911"},"modified":"2023-02-14T15:07:18","modified_gmt":"2023-02-14T20:07:18","slug":"blocking-or-redirecting-returning-visitors-to-another-url","status":"publish","type":"ht_kb","link":"https:\/\/www.tracemyip.org\/learn\/blocking-redirecting-returning-visitors-to-another-url-1911\/","title":{"rendered":"Blocking or redirecting returning visitors to another URL"},"content":{"rendered":"<p><strong>Customer question: <\/strong>I want to find a way to only allow unique IP addresses to visit a page. When they are returning and based on the IP, they should be blocked or redirected to another URL.<\/p>\n<p><strong>Solution: <\/strong>Use a built-in Link \/ Page Tracker module<\/p>\n<h2>Using a Page or Link Tracker module to redirect returning visitors<\/h2>\n<p>With the built IP control features it is possible to allow only first-time Unique IPs to visit a specific page only once. Upon a subsequent visit to the same page or URL, the visitors can be either redirected to another URL or blocked from visiting the page.<\/p>\n<h3>Here are the steps to setup the feature<\/h3>\n<p>This feature requires you to use both &#8211; a <strong>JavaScript<\/strong> code of the <strong><a href=\"https:\/\/www.tracemyip.org\/tools\/website-visitors-counter-traffic-tracker-statistics\/\" data-internallinksmanager029f6b8e52c=\"68\" title=\"visitor tracking, visitor IP tracker\">Visitor Tracker<\/a><\/strong> and a <strong>Page or a Link Tracker<\/strong> code. The Page\/Link Tracker code must be installed above the <a href=\"https:\/\/www.tracemyip.org\/learn\/how-to-install-a-website-visitor-tracker-code-1626\/\" data-internallinksmanager029f6b8e52c=\"27\" title=\"How to install a website visitor tracker code\">Visitor Tracker code<\/a>.<\/p>\n<ol>\n<li>If you do not have a TraceMyIP account, <a href=\"http:\/\/www.tracemyip.org\/learn\/how-to-create-a-free-tracemyip-account-89\/\" target=\"_blank\" rel=\"noopener\">create an account<\/a> or if you already have an account, install a JavaScript version of a <a href=\"http:\/\/www.tracemyip.org\/learn\/generate-visitor-ip-tracker-code-1267\/\" target=\"_blank\" rel=\"noopener\">visitor tracker code<\/a>.<\/li>\n<li>Install a <strong>Page Tracker<\/strong> code to <a href=\"http:\/\/www.tracemyip.org\/learn\/how-to-block-an-ip-address-1017\/\" target=\"_blank\" rel=\"noopener\">control visitor access<\/a> to specific or ALL pages or a <strong>Link Tracker<\/strong> to control links.<\/li>\n<li>Ensure that the visitor tracker icon shows up on ALL pages of your site. You can enable an <a href=\"http:\/\/www.tracemyip.org\/learn\/how-to-make-a-visitor-tracker-invisible-91\/\" target=\"_blank\" rel=\"noopener\">invisible tracker<\/a> mode at any time. Look into the source code of your website and check that the Page Tracker code is installed above the Visitor Tracker code and appears in the exact same format as provided by the system<\/li>\n<li>Go to the <strong>Page\/Link Tracker<\/strong> setup page and\n<ul>\n<li>&#8220;<strong>Add an Advanced Rule<\/strong>&#8220;. Configure the rule to affect &#8220;<strong>Last or first <a href=\"https:\/\/www.tracemyip.org\/learn\/what-is-an-ip-address-127\/\" data-internallinksmanager029f6b8e52c=\"14\" title=\"What is an IP address?\">IP address<\/a><\/strong>&#8221; with the <strong>IF<\/strong> condition &#8220;<strong>Contains ONE of specified strings<\/strong>&#8220;.\u00a0 Specify each IP address to be affected on a new line<\/li>\n<li><strong>ADD<\/strong> one more [<strong>AND<\/strong>] condition and set it to &#8220;<strong>Website returned visit<\/strong>s&#8221;. Enter <strong>&gt;0<\/strong> in the input field to affect visitors that had 1 or more returning visits<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"932\" class=\"img-trisize-float sz340A wp-image-1922\" style=\"float: right;\" src=\"https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/11\/tracemyip-redirect-returning-visitors-rule.jpg\" alt=\"tracemyip-redirect-returning-visitors-rule.jpg\" srcset=\"https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/11\/tracemyip-redirect-returning-visitors-rule.jpg 760w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/11\/tracemyip-redirect-returning-visitors-rule-245x300.jpg 245w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/11\/tracemyip-redirect-returning-visitors-rule-41x50.jpg 41w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/11\/tracemyip-redirect-returning-visitors-rule-49x60.jpg 49w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/11\/tracemyip-redirect-returning-visitors-rule-82x100.jpg 82w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><strong>Select Action &amp; URL<\/strong> to choose how you want the IPs to be processed<\/li>\n<\/ul>\n<\/li>\n<li>Click on &#8220;<strong>Add a New Advanced Rule<\/strong>&#8221; or &#8220;<strong>Modify Advanced Rule<\/strong>&#8221; to save the rule<\/li>\n<li>You can test the rule by visiting your page(s). Clear the browser cookies each time you test returning visits, as the rules are using browser cookies.<\/li>\n<\/ol>\n<div style=\"clear:both\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Customer question: I want to find a way to only allow unique IP addresses to visit a page. When they are returning and based on the IP, they should be blocked or redirected to another URL. Solution: Use a built-in Link \/ Page Tracker module Using a Page or Link&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[49,98],"ht-kb-tag":[114,70,116,115],"class_list":["post-1911","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-faq","ht_kb_category-ip-control-and-interaction","ht_kb_tag-faq","ht_kb_tag-ip-blocking","ht_kb_tag-link-tracker","ht_kb_tag-page-tracker"],"_links":{"self":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/1911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/comments?post=1911"}],"version-history":[{"count":13,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/1911\/revisions"}],"predecessor-version":[{"id":2152,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/1911\/revisions\/2152"}],"wp:attachment":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/media?parent=1911"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-category?post=1911"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-tag?post=1911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}