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

Provide a command line option to hc that allows the user to specify their own User-Agent string #17

Open
shawnmjones opened this issue Jul 6, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@shawnmjones
Copy link
Member

I've been reluctant to provide this functionality in case it might be misused, but I needed it today.

@shawnmjones shawnmjones added the enhancement New feature or request label Jul 6, 2020
@ibnesayeed
Copy link
Member

When people are running the application locally, they should be able to customize UA, which is actually preferred. It happened with us in the past when someone else's MemGator instance was causing extra load to an archive and we were contacted because they did not customize the UA. Now, MemGator logs a message when the server is run with default UA.

@shawnmjones shawnmjones added this to To do in Hypercane v0.6 Feb 3, 2022
@shawnmjones shawnmjones moved this from To do to In progress in Hypercane v0.6 Feb 3, 2022
@shawnmjones shawnmjones removed this from In progress in Hypercane v0.6 Feb 3, 2022
@shawnmjones
Copy link
Member Author

I have not implemented this @ibnesayeed because I feel like Hypercane can be a potential resource hog on web archives themselves, especially for large numbers of mementos. I wrote a section about the importance of caching in the documentation (the docs may need an update). Even with caching and features like honoring the retry-after field, I fear that it is possible for Hypercane to abuse a web archive in the wrong hands, hence I have forced it to identify itself appropriately.

@ibnesayeed
Copy link
Member

Thanks @shawnmjones for your description. I think it is not the responsibility of a tool to prevent people from intentionally abusing a system. Archives will have other ways to detect and prevent that, if they choose to do so. That said, even if we intend to enforce certain things in the UA string, it is still possible to allow some level of customization. In MemeGator, one can either overwrite the whole UA string or simply supply the extra information (e.g., contacts) to be included in the existing UA template. By enforcing a system-generated UA we limit the possibility of good players including information like the name or description of the project they are using the tool for and/or a contact information (e.g., email or Twitter handle) in case ops try to reach out to them.

@shawnmjones
Copy link
Member Author

shawnmjones commented Feb 3, 2022

Thank you @ibnesayeed. That was the justification I needed. I will add this issue to the plan for the next release. 😀

@shawnmjones shawnmjones self-assigned this Feb 3, 2022
@shawnmjones shawnmjones added this to To do in Hypercane v0.6 Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants