-
Is there any way to exclude specific IPs like my local IP from the Stats showing in Yourl both for IP column and Clicks column? |
Beta Was this translation helpful? Give feedback.
Answered by
dgw
Dec 13, 2024
Replies: 1 comment 3 replies
-
Couldn't find anything exactly like this, but it shouldn't be too difficult to adapt another "skip tracking" plugin like mine to trigger on the IP (fetch using Making it configurable through the admin area, without editing the plugin file code, would be much more work. But the basic functionality seems simple enough. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installing my plugin isn't going to do what you want. You have to create your own plugin called something like "Exclude Local IP", which will use the
yourls_get_IP()
global function to get the user's IP and compare it to one (or a list) that you set as excluded.Not something I can dash off as an example today, nor would I want to just dump untested code on someone. If you aren't comfortable enough with PHP programming to make this yourself, you'll need help.