Jump to content

Using Geo IP or block IP ranges?


bapho
 Share

Recommended Posts

Hi guys,

Anyone here know of a way to block users coming from certain countries or IP ranges within just using JS/Phaser and preferably without using a server? I tried using http://freegeoip.net/ with xmlHttpRequest but that didn't pan out well due to anti cross domain rules.

Link to comment
Share on other sites

This is an odd request as you normally block IPs from other countries from the server. If you are trying to prevent say Antartican Players from playing your game then you need to do that serverside, otherwise they still get the game (and can modify it).

 

If this helps with your goal though... https://crossorigin.me Just make sure you set then origin header.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...