473,411 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Allow users access to a server for a limited time from a website?

7 Nibble
Hi,

I want to create a web app that allows users to log in, pay some money, and then get access to an RDP session on a server for a limited amount of time.

Sort of 'rent-a-server' type thing.

I can create a website with ASP or Django that lets users sign up authenticate, accept payment, have a database tracking how much time they have been allocated.

The question is though, how would I design access to the other server I'm renting?

Can you have dynamic urls that expire after a set amount of time?

Or would you have everything in Azure and use Identity management or something to tie the authenticated users to the server?

Or maybe when you log into the website, it creates the RDP session for you and doesn't allow it to be created after your time has expired?

Thanks :)
Jan 4 '21 #1
4 3764
Niheel
2,460 Expert Mod 2GB
It should be doable.

Are the server's VMs? If they are VMs you could probably set time limits on the remote desktop session.
It would also be OS dependent.

If you are provisioning a fresh OS for every session, i believe it should be.

Windows:
https://www.ryadel.com/en/remote-des...s-server-2012/

Planning and Deploying Session-based Virtual Desktops

Azure, AWS, GCP make it easier.
I think AWS announced MacOS instances recently, so you can create broad availability of server types to provision.

user account in your app db -> user account on a server -> data & applications states are provisioned at each creation -> you can manage access via the app and AWS/Azure code ( firewalls and combination of simple shutdown/startup of vm instance ).

You could probably programmatically set these.
Jan 4 '21 #2
dev7060
636 Expert 512MB
I want to create a web app that allows users to log in, pay some money, and then get access to an RDP session on a server for a limited amount of time.

Sort of 'rent-a-server' type thing.

I can create a website with ASP or Django that lets users sign up authenticate, accept payment, have a database tracking how much time they have been allocated.
I guess could be achieved via sessions and cookies. Keep track of the user via session-id and store the remaining time in the database. Keep updating the time via asynchronous background calls and destroy the session on completion or alter a session variable value and limit the user access area. Have the data permanently stored in the database to synchronize between modules.
Jan 5 '21 #3
ScottishKing
7 Nibble
Thanks for the answers!

Both are very useful, but I'd lean towards the sessions idea as some of it will be hardware based.

FYI, if you're interested, my friend has bought some expensive industry equipment for a personal project and want to rent online access to it to recoup some of the cost. Sort of like remote lab equipment setup.
Jan 5 '21 #4
SwissProgrammer
220 128KB
A way to do this could be to use a dynamically created page. It could be created in response to need. After a set time or variable time it could be deleted from the server. See https://duckduckgo.com/?q=dynamicall...es&t=h_&ia=web . One page or multiple pages per customer. Create, use, track activity or not, delete.
Jan 14 '21 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Andy_Khosravi | last post by:
I'm in a bit of a pickle. My employer, a health insurance firm, had me design a small database to track benefit issues. The intended users were technical specialists and some managers (about 90...
4
by: cashdeskmac | last post by:
Is it possible to allow only anonymous users access to the contents of a folder, rather than all users?
5
by: profdotnet | last post by:
Below is the code of web.config file: <configuration> <system.web> <authentication mode="Forms" /> <authorization> <allow users="Admin"/> <deny users="Jack,Mary" /> <deny users="?">...
0
by: furiousmojo | last post by:
Okay, so I thought this would be easy, but it's not turning out that way. Let's see how good you guys are! :-) I have a windows authentication-based Intranet application. An excerpt from the...
3
by: Dave Marden | last post by:
Is it possible to allow a person whom navigates to a particular page to type in a URL to a website they visit often, and have it be treated like code on the page itself for them to use it as a...
1
by: PaulG | last post by:
Hi I'm trying to implement roles onto a .NET2 enviroment running IIS using Form Authentication. Using default aspnet login screen working back to a SQL server. The Web. config for directory is...
0
by: nethajireddy | last post by:
hello Techies.. I already placed in this forum but I did not get exact solution for my problem, we are using windows 2000 server and configuration is P-III 500Mhz processors (2), 512MB...
1
by: leela mn | last post by:
Hi Everybody!!! i have a situation where in i should allow users to access the website only once from a particular system.. so is there any way from which we can know all the windows open????
18
by: =?Utf-8?B?VG9t?= | last post by:
is it possible to add a bunch of users to group and only allow group to access the web page or do I need to add each user to the web.config file? Or is there another way to do this? I just took...
1
by: halamazoo | last post by:
I'm trying to create the necessary framework to allow users to log into my website. I have already created the backend using a MySQL database. The part that I'm hung up on is being able to pass...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.