I have API on IIS and which are consume by other mobile apps the API are hosting on IIS I want the API to not be accessible after sometime like can be accessible from 8-07 pm how to do it
Loading
I have API on IIS and which are consume by other mobile apps the API are hosting on IIS I want the API to not be accessible after sometime like can be accessible from 8-07 pm how to do it
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mark TaborPosted Mar 31, 2023, 6:19 PM
Thanks Tuhin there is not any time tab i am following the steps you mentioned
Mark TaborPosted Mar 12, 2023, 6:49 PM
Jignesh yu can see this below image it did not start my iis
Jignesh KumarPosted Mar 5, 2023, 1:16 PM
HEllo MArk Tabor,
Could you please share your scheduler details it may help to identify issue?
Mark TaborPosted Mar 5, 2023, 6:50 AM
Pasang Tamang & Jignesh Kumar thanks for the reply Rate limiting is something else like number of request send to the API , What I need is to stop the IIS on specfic time and start on specific time on daily bases , i have set the scheduler but it won't work.
Jignesh KumarPosted Mar 1, 2023, 6:41 AM
Hi Mark Tabor,
As pasang said you can implement rate limiting feature to restrict request during specific time
or
you can set down time for api using scheduler to start/stop at specific time
or
Create powershell script to achieve this.
Pasang TamangPosted Mar 1, 2023, 5:48 AM
Hi,
I think rate limiting is what you need to implement. Please go through below article to understand detail about rate limiting
https://www.c-sharpcorner.com/article/implement-rate-limiting-in-asp-net-core-web-api/
Regards,
Pasang
Tuhin PaulPosted Mar 1, 2023, 3:23 AM
Hi Mark,
One way to restrict access to an API on IIS based on a specific time period is to use the "IP and Domain Restrictions" feature in IIS. Here are the steps to set up time-based access restrictions:
By setting the start and end times for a specific rule, you can control when the API can be accessed by mobile apps. If you want to apply these time-based restrictions to multiple APIs, you can use the "Configuration Editor" in IIS to apply these settings at the server level. This will allow you to manage time-based restrictions across multiple sites and applications in IIS.