Is the Cache Storage in a PWA secure? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am building a PWA and I have got restrictions that cached data have to be secure in some way, so I was wondering where the Cache API stores the data.
Since this feature is only available in Secure Contexts (HTTPS), we are protected against man in the middle attacks.
My main concern is that the cache could be accessible by other domains or through the users filesystem, where i suppose the data is stored. Sadly there is no documentation about this.
To provide more insight into my application:
PWA running on a nginx
.NET Backend running on the same domain and is accessible by appending "/api"
I am aware that I can navigate to the Cache Storage in the Chrome Dev Tools for example, but I do not know where they are stored, and whether they are encrypted or not.
Thanks in advance

Related

Listening and logging when someone pings your webserver [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm relatively new to javascript and web development, but what I'm trying to do is log when a person navigates to my website. I've tried googling it, but I'm not sure what to ask google for this issue.
Your web server is already logging each visit (unless you turned that off). With Apache on Ubuntu, you’ll find a file in /var/log/apache2/access.log which has a log of each request made of the server.
Each line in that file will show you the time the request was made, the IP address of the web site visitor, the file they requested, the time it took (in seconds) to serve the request and the size (in bytes) of the response.
Alternatively, add google analytics to your site and google will log each visit and give you a nice way to visualise that.

What is the best practise to host MongoDb in AWS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I generally install mongo on an ec2 instance .
But i came across many other methods on hosting a mongodb server in aws.
I am looking to learn the most effective way to do this. Thanks in advance.
This is just an educational question.
My recommendation is to use the mongoatlas service, they have several plans but they carry out a full deployment of your database with automatic backups, metrics, access and permission management, availability, set replicas, autoscaling, etc...
Finally they also use amazon to host their databases and it is an official service of mongodb.
https://www.mongodb.com/cloud/atlas
The downside to using a simple amazon instance is to implement all of that and without a good backup procedure you could lose all your data if your instance dies.

Fetch local ressource from distant server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Let me explain the situation :
I have a local application that generate a local server (localhost with port) where I can have informations. I also have a distant VPS with a web application running on it. And my goal is to get informations from the local server to use them in my web application.
Any ideas how to do that ? I precise that I can't modify the local server/application because it's not mine.
ngrok is made exactly for that: exposing local servers to the public internet. Let's say your server is running on http://localhost:3000. You can run ngrok http 3000 and your server will also be accessible at an address like (http|https)://1234abcd.ngrok.io.
Ngrok has a free plan that is really free and subscriptionless that is pretty powerful, allowing 8hr/day and 60 requests/mn (if I remember correctly), so it's pretty awesome for advanced web application prototyping.
You can then upgrade to a paid plan, but at this point you'd rather host your local server on the internet instead. Then I'd recommend Digital Ocean for its simplicity and extensive dev doc.

Get a visitor's System Hardware information? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am working on a "system requirements" project - where I need to know my visitors system hardware. It must work online. I know I can get the visitors GPU info but can't get CPU, RAM, HDD, etc.
Is it possible to obtain a visitor's hardware information?
In short, no.
PHP runs on the server and only has access to it and data sent to it.
Javascript runs on the client but is sandboxed and has no direct access to the hardware layer (just limited information about the GPU).
All services that do offer this kind of "scanning" (nVidia, etc) - use a downloadable application that scans the hardware for that platform then returns the result to the web service.
So you can do it, but you would need some additional software that can run on the client machine that can access the data you require.

How can I host a create a simple login portal that can be accessed by different users over a same local network? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm planning to make an Instagram for web for my school project, but i don't know how to give access to a page from the server to multiple users. Make note that all these things are happening offline and the webpage will be accessed to all those users who are connected to my local hotspot (or the computer hotspot on which I'm going to host the server).I don't know a thing about how to connect two users. please help.
Thanks
this steps are for XAMPP over the same local network:
Get your internal IP or static ip (ipv4, example: 192.168.1.106).
Open XAMPP>apache>conf>httpd.conf file
Find the line #Listen 12.34.56.78:80 or #Listen 0.0.0.0:80
Change the IP address in that line and replace it with the static IP (192.168.1.106)
Save the httpd.conf file ensuring that the server is pointed to #Listen
192.168.1.106:80
to connect from another pc just write http://192.168.1.106/myapp
hope it helps.

Categories

Resources