Skip to content
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

Use informative user-agent for harvester #36

Closed
alanorth opened this issue May 17, 2020 · 2 comments
Closed

Use informative user-agent for harvester #36

alanorth opened this issue May 17, 2020 · 2 comments
Labels

Comments

@alanorth
Copy link
Member

OpenRXV does not currently specify a User-Agent header when it connects to DSpace for harvesting. This makes it difficult to distinguish it from legitimate clients and bad actors. Furthermore, its harvesting activity causes statistics impressions to be made for every single item, every single time it harvests, which incorrectly inflate the statistics.

By default DSpace does not register statistics hits if a user agent containing the string "bot" is used, so I suggest we use something like this:

OpenRXV harvesting bot; https://github.com/ilri/OpenRXV

@alanorth alanorth added the P-high High priority label May 17, 2020
@alanorth
Copy link
Member Author

alanorth commented Jun 24, 2020

The string is currently axios/0.19.2. Perhaps this will help:

axios/axios#2560

I'd prefer some user agent with "bot" in the name, as those won't register statistics impressions in our system. Perhaps OpenRXV harvesting bot; https://github.com/ilri/OpenRXV, with a link so people know what it is?

moayadnajd added a commit to moayadnajd/OpenRXV that referenced this issue Jul 21, 2020
moayadnajd added a commit to moayadnajd/OpenRXV that referenced this issue Jul 21, 2020
@alanorth
Copy link
Member Author

I confirm that this is working. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants