Skip to content

Exclude internal local IP from the stats #3824

Answered by dgw
wrtz008 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@wrtz008
Comment options

@dgw
Comment options

dgw Dec 13, 2024
Maintainer

Answer selected by wrtz008
@wrtz008
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants