creativecommons/wp-plugin-creativecommons

image being loaded in network

superpoincare opened this issue ยท 9 comments

Describe the bug

Image loads as an http request from site's IP address and shows in visitors. It seems that the plugin loads the file as an http request, instead of maybe doing a file_exists

To Reproduce

Steps to reproduce the behavior:
Go to cPanel and click visitors. You can see that the png file is being requested when Wordpress is doing a cache warming. The user agent is "- [domain name] [IP address]"

Expected behavior

Shouldn't show up.

Desktop (please complete the following information)

  • OS: Windows 10
  • Browser: Chrome
  • Version: 80

I can confirm this. I too see the request for the image file in visitors.
The CC image file is not confidential, so why would that be a problem?

I presume you don't want your site's IP in visitors? Keep in mind that crawlers also access your site so the cPanel visitors section is no good for counting users if that's what you want.

Agreed @neelansh15 .

Im having trouble picking an first issue. Im working with WAMP and dont think I can access cpanel. I have to submit a contribution. How do I go further ?

@d-peshlakai If you wish to contribute to this specific issue, then you can use any free hosting site to install Wordpress and this plugin to test the issue. Thay way you can check with the cPanel visitors section.
I am not really sure of the necessity of this issue though.

I am not a member of Creative Commons, but if you're looking to contribute in general then you can try exploring other easy issues in other repositories of Creative Commons.

I am assuming you came to this issue since its labelled good first issues. There are many more in other repos, and sometimes issues aren't labelled immediately so you may need to go through more of them to find what you like.

hey @d-peshlakai try this . It might help setting up enviornment for cpanel.

Hello, Is this issue still open? I would like to work on this one.

Hello, Is this issue still open? I would like to work on this one.

@CapriciousRebel yes, this is still an outstanding issue

As best as I can find, this seems to be related to the cache configuration of the host itself. If, for example, a host has a reverse proxy enabled it can alter what IP is shown in cPanel visitors. Alternatively, any "cache warming" done via a plugin or configuration related to WordPress would initially show such an event as coming from the host IP, since it's priming the cache, initiated by the server itself, for future visitors.

At this time, I don't see that this is an issue that's a part of the plugin itself, just a result of specific host configurations. However, if someone else has better details, we can always reopen this issue.