472,371 Members | 1,552 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 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 3555
Niheel
2,459 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
625 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: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.