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 a random path to prevent other apps from accessing content #103

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

akwizgran
Copy link
Collaborator

@akwizgran akwizgran commented Sep 8, 2023

The path is the Base64 encoding of 128 bits from SecureRandom. This prevents anyone who doesn't know the path (eg untrusted apps running on localhost) from accessing the content. The root URL now returns a 404 page.

Fixes #104.

The path is the Base64 encoding of 128 bits from SecureRandom.
This prevents anyone who doesn't know the path (eg untrusted
apps running on localhost) from accessing the content. The root
URL now returns a 404 page.
@akwizgran akwizgran requested a review from grote September 8, 2023 12:41
@akwizgran
Copy link
Collaborator Author

Screenshot_20230908_132433

@akwizgran akwizgran mentioned this pull request Sep 8, 2023
@grote
Copy link
Collaborator

grote commented Sep 11, 2023

Nice work!

@grote grote merged commit 144eb6b into main Sep 11, 2023
2 checks passed
@grote grote deleted the random-content-url branch September 11, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent other apps on same device from accessing content
2 participants