Related to user data in web development [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 last year.
Improve this question
Anyone tell me that where the user data (like photos, videos, posts) is saved?
Because I don't think that they goes in SQL or any similar database.

Typically you will use a service like AWS S3 for media (photos, videos, files, etc.). Blog posts (just text) will be in the database in a text type. Media is usually renamed to a unique value and then referenced in the database.
However if this is a personal project not meant for public use you could store media locally in the filesystem (NodeJS, PHP)

Related

How to securely store resources in a web application? [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 1 year ago.
Improve this question
I am creating an application in the MERN technology stack. This project is a gallery of graphics. Some of the graphics are paid and some are free. I am wondering which way to store these paid images will be the most secure ? I put the free graphics in a static uploads folder stored on the server where the application is running. The path to the file is stored in the database.
Easiest way to do it is to have the paid images in some storage that is not publicly accessible. Then you put some form of a api/proxy in front of it that can verify users. If user is verified you show the picture, if not you show something else.

How to retrieve Amazon prices using JavaScript [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 days ago.
Improve this question
I am well aware that there are methods of retrieving Amazon prices using JavaScript. I have seen the Amazon Advertising Product API, but frankly, after creating an account, I do not how to use it. I have looked at guides, and I am still confused. Can someone guide me through the code of the Amazon Advertising API, or can someone give an alternative? Thank you.
This is for a school project. I have a basic understanding of JavaScript.
You can use the ItemSearch endpoint with the Amazon Advertising API. The prices are contained within the MinimumPrice and MaximumPrice fields.
https://webservices.amazon.com/paapi5/documentation/search-items.html

Site stored sensitive data locally [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 6 years ago.
Improve this question
The site stores personal information on the local machine. This sensitive data contains personal details like their names, their date of birth, their identity card, etc. This data can be access later by a third party either at the machine through the browser when the user visits their site. How to prevent this case?
Screenshots
Attached
If you own the site, you can easily clear localStorage as a whole or in pieces. Run this code after you're through using the local data.
localStorage.clear();
You can remove specific variables like:
localStorage.removeItem(key_name);

How to save game information PHP/HTML/CSS/JS [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 6 years ago.
Improve this question
I am building a web browser text base RPG game with PHP/Javascript/HTML and CSS.
Each user has some information like his Name, Level, Experience, Gold and more. All the data is saved in the database.
When moving from pages in the game what will be the right method to store the data to be use in all the pages?
I thought about the following options:
PHP SESSION
Cookie
Using GET with the info in the link.
What do you think is the right way to do it?
In aspect of data security, hacking, easy etc.
Currently I am thinking about using PHP SESSION.
Assuming that most of your game logic is executed on the server side, keep the game state in the PHP session. Other than cookies and GET parameters, the session information is stored on server side and for this reason out of reach for manipulations by the user.
In addition to that, save consistent states to the database often to make the game information persistent.

Share photo albums via obfuscated urls, without requiring user-accounts [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 6 years ago.
Improve this question
I'm looking to create a "local" photo sharing application with Meteor, which allows visitors to either create a sort of private lobby, or post photos to a private lobby (allowing for local slideshows, for example).
To do this, I would need to be able to generate some kind of unique password or code, which people could use to gain access to the local slideshow and then be able to add pictures to it.
Can anyone give me pointers on this? Or Meteor resources I can take a look at in terms of setting up "private lobbies" of this sort, accessible only by a generated key?
Create a collection called "Lobbies"
Add documents to that collection, each will have a random id automatically
Create a route (using FlowRouter or iron-router) that loads that lobby document and all related photographs, ex: /:lobbyId
Don't publish these lobbies unless they are requested specifically by _id, this will prevent them from being accidentally discovered
Now your users can add pictures to lobbies and exchange the urls of these lobbies and only the people who know the url will gain access.

Categories