-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to prevent the profiling from certain IPs? #83
Comments
I guess you should specify IP's that allowed to profile instead of excluding not allowed ones. This can be done via |
I tried to do so. Like I wanted to profile only from two URLs. Say, for example, from x.x.x.x:8000 and x.x.x.x:9000, and not any other ports. I tried specifying the same in the config.php as $controlIPs = array('http://x.x.x.x:9000','http://x.x.x.x:8000'); But when I tried to open the profiling page, the result was "You do not have permission to view this page." |
Name of the setting suggests that can only have IP in there in general. No ports. |
How come, that your website is served from variety of ports? |
The thing is to profile data from two PHP applications |
I see. Instead of application being located in the sub-folder you have 2 virtual hosts at different ports instead. Since IP address is the same the I think ports are not supported yet. But you're free to change https://github.com/preinheimer/xhprof/blob/master/external/header.php#L35 and if it goes well for you maybe can also arrange a PR. |
So I think there's some confusion over the control IPs: I think to get what you're looking for, I might change how you're including the |
@Vidzz , feel free to close the issue if it was resolved. |
How can I prevent the profiling of PHP codes from certain IP?
I don't want to store the data at all instead of just not showing the footer. Is it possible?
The text was updated successfully, but these errors were encountered: