Exclude a country from accessing the app

Exclude a country from accessing the app, based on any geo IP api?
7 Replies
kapa.ai
kapa.ai3w ago
Hi @NEROX. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I do not have enough information to answer your question specifically about excluding countries based on geo IP in Wasp. The provided knowledge sources don't contain direct information about implementing country-based access restrictions or integrating geo IP APIs in Wasp applications. However, I can provide some general information about access control in Wasp: 1. Wasp currently doesn't have built-in support for advanced access control or geo-blocking features. The framework is still evolving, and more sophisticated authorization features are being planned for future versions RFC: Support for Permissions (Access Control) (https://github.com/wasp-lang/wasp/issues/584). 2. For now, access control in Wasp is primarily handled through custom logic in your queries and actions. You can use the context.user object to implement basic authorization checks Using the context.user object (https://wasp-lang.dev/docs/auth/overview#using-the-contextuser-object). 3. If you need to implement country-based restrictions, you would likely need to create a custom solution. This might involve: - Setting up a custom API endpoint in Wasp Custom API Routes (https://wasp-lang.dev/docs/advanced/apis) - Integrating a third-party geo IP service in your server-side code - Implementing the access control logic in your queries and actions Keep in mind that implementing geo-blocking can be complex and may have legal implications depending on your use case and jurisdiction. It's advisable to consult with legal experts if you're considering such restrictions for your app. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
NEROX
NEROXOP3w ago
@kapa.ai Do you know something about Cloudflare about restrict regions or ips?
kapa.ai
kapa.ai3w ago
Let me check the knowledge base for you again. One moment! :books:
MEE6
MEE63w ago
Wohooo @NEROX, you just became a Waspeteer level 14!
kapa.ai
kapa.ai3w ago
---------------------- While I understand your interest in using Cloudflare for region or IP restrictions, I'm afraid I don't have specific information about Cloudflare's capabilities in this regard within the context of Wasp. The knowledge sources provided don't contain information about Cloudflare's region or IP restriction features. However, I can share a small, relevant piece of information related to Wasp and Cloudflare: There is an ongoing discussion within the Wasp team about moving their documentation from GitHub Pages to Cloudflare Pages Move our docs from Github Pages to Cloudflare Pages (https://github.com/wasp-lang/wasp/issues/1929). This suggests that Wasp is considering using some Cloudflare services, but it doesn't provide any information about region or IP restrictions. If you're looking to implement region or IP restrictions in your Wasp application, you might need to explore custom solutions or third-party services that can be integrated with your Wasp backend. Unfortunately, I don't have specific information on how to do this within the Wasp framework based on the provided knowledge sources. For the most up-to-date and accurate information about using Cloudflare with Wasp or implementing region/IP restrictions, I recommend reaching out to the Wasp community on their Discord channel (https://discord.gg/rzdnErX) or checking their official documentation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
NEROX
NEROXOP3w ago
I have simply acquired a nice new domain and it is already receiving traffic from rare requests from russia. I wanted to see some way other than excluding the use of the app or something. I'm going to check Cloudflare to see what's there.
NEROX
NEROXOP3w ago
Solved, with WAF rules that is premium feature $20/mo
No description
Want results from more Discord servers?
Add your server