In our MVC 3 solution we have a site with many sections. Customer want to have a possibility to manage access to each section by IP address(from admin part). What are the standard ways of implementing this requirements? I see, smth like this: every section has a list of wildcards, that represent IP addresses, and then we we somehow validate IP address using this wildcards.
Restrict access to different site sections by ip
474 Views Asked by valerii.sverdlik At
1
There are 1 best solutions below
Related Questions in ASP.NET-MVC
- Can MVC.NET prevent SQL-injection at razor or controller level?
- Getting and passing MVC Model data to AngularJS controller
- Access property of an object of type [Model] in JQuery
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Bundling and minification issue in MVC
- ASP-MVC Code-first migrations checkbox not active
- Why does Azure CloudConfigurationManager.GetSetting return null
- Dynamic roles list in CustomAuthorize ASP MVC
- Jquery: Change contents of <select> tag dynamically
- Why web API return 404 when deploy to IIS
- MVC route URL not containing parameter
- Invalidate user credentials when password changes
- MVC : Insert data to two tables
- MVC - Only allow users to edit their own data
- Submit Button on Razor View doesn't call Action Result - MVC
Related Questions in WILDCARD
- T SQL wildcard searching for a zip code
- Mysql Wildcard in field
- Use apache mod_mem_cache to cache Rest services
- MySQL wildcard replace
- Excel Advanced Filter not working with Wildcard (* asterisk) using regular numbers and hyphenated number system
- Parameterization Well Formedness and Capture Conversion in Java
- Capture conversion issue in Java, WRT reconciliation of JLS and actual JDK behaviour
- JAVA SQL assign all wildcards to null
- SQL Use Greater/Less Than with like and wildcards
- Why use a wild card capture helper method?
- Wildcards in Standard ML
- excel macro vba Filtering using wildcards
- Use wildcards in ado.net sybase parameter
- Unzip files that begin with a particular string
- Replace function with wildcard
Related Questions in IP-RESTRICTIONS
- Restrict access to RabbitMQ via IP
- How to deny IP for a specific url from IIS when you have a rewrite url with path (.*)?
- How to block by ip with Apache
- Restricting website access with 3G modem (tried Windows SteadyState)
- IIS: Add Feature
- Wordpress error when trying to log onto /admin. TypeError thrown Return value of SISANU_Restrict_Country_IP_Login
- How to restrict access by IP address to specific path with Tomcat?
- Google Geocode API IP restrictions
- Terraform azurerm_windows_function_app ip_restrictions issues
- Restricting website access by client geolocation
- How to do IP restrictation for clients in keycloak admin console
- After added the user IP in inbound traffic(access restriction) of app service in azure, those IP user still cannot access the website
- How to apply ratelimiting (restricting access) on logged-in users taking screenshots of my website?
- does the user login restriction based on IP address support ipv6 for web application?
- Azure AppService IP address restrictions
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I would suggest not using directly IP addresses in your code - these tend to change from time to time. Do create system of "zones", similar like in many personal firewalls.
My solution would be basically like this :
Create custom authorization attribute
you then use it like this
Your zones definitions is up to you, use XML, database, whatever...