Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Security advice for simple data transfer

Featured Replies

I know very little about web site software, which makes me a potential liability.

I want to create a simple way to transfer a small amount of information between a dedicated PC and a mobile phone.  I can write the software for both. I don't want to use port forwarding for the PC. 

My thought is to transfer data like this-

The PC can send a GET or a PUT request to the web address (https://www.blahbah) using a 30 character API key type of code. The server can send a reply with data as needed.

The phone does the same maybe with another key.

The speed of updating the data is not critical, if there is a 10 second delay that's fine. There will be no visual aspect to the website and any requests without the correct key will be rejected.

How safe, or not, is this approach? If it is a bad idea I would welcome any suggestions on what I should learn, or where I should look.

Edited by Martincg
correct typo

If you keep to the basic standards of security in your application you should be fine, as well as the API key it might be a good idea to add basic auth headers as an extra layer of protection (OAuth would be best).

Just some thoughts:

  • Make sure the connections are encrypted/secure via SSL
  • Add a basic auth username and password to your request headers as well as a api key
  • If possible lock down the "www.blahbah" URL to certain devices for your mobile device and from your PC base it on IP address
  • Securing the website so that nothing is recorded that doesn't need to be push to it (logs etc)
  • Log any failed requests to access the data so you can see if anyone is trying to get to it that shouldn't be

Hope this helps :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.