https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • b

    boywithkeyboard

    03/14/2023, 8:26 AM
    i mean companies like google use the user's ip to detect malicious access any other ideas rather than collecting the country/region of the user?
  • h

    HardAtWork

    03/14/2023, 8:26 AM
    What do you mean?
  • b

    boywithkeyboard

    03/14/2023, 8:28 AM
    what part can't you follow? i mean that e.g. if a user from the us stole a german's user their refresh/access token, they get blocked
  • b

    boywithkeyboard

    03/14/2023, 8:28 AM
    like as an extra layer of security
  • b

    boywithkeyboard

    03/14/2023, 8:29 AM
    does this make more sense to you?
  • h

    HardAtWork

    03/14/2023, 8:29 AM
    Oh ok. Might be easier to tie it directly to the IP address then?
  • h

    HardAtWork

    03/14/2023, 8:29 AM
    Rather than a specific country or region?
  • d

    Dani Foldi

    03/14/2023, 8:29 AM
    oh they use a lot of other tiny little traces of information, and it's never a pass/fail
  • h

    HardAtWork

    03/14/2023, 8:30 AM
    Oh wait, IP switching
  • d

    DarkDeviL

    03/14/2023, 8:30 AM
    Initially here, you refer to: > geolocation security What kind of "security" are you looking for, in which directions and so forth? Geolocation alone, or as the only "security" would be crap for that.
  • b

    boywithkeyboard

    03/14/2023, 8:30 AM
    but that will change often?
  • d

    Dani Foldi

    03/14/2023, 8:30 AM
    it's marked on a scale - if you've seen recaptcha 3, it can be hidden, tick a box, or pass a challenge
  • b

    boywithkeyboard

    03/14/2023, 8:30 AM
    if you don't have a static ip at least
  • s

    stavros-k

    03/14/2023, 8:30 AM
    I'm not. Is there any pointers/links on how I could achieve that?
  • d

    DarkDeviL

    03/14/2023, 8:31 AM
    As for the token, IP switching as HardAtWork already mentioned, can be an issue from time to time. One thing you can do to combat that one, would be to limit it to a larger scope (e.g. "subnet") of addresses.
  • h

    HardAtWork

    03/14/2023, 8:31 AM
    Ok then yeah, use the Region/Country. Should "generally" be accurate
  • b

    boywithkeyboard

    03/14/2023, 8:31 AM
    can you open a thread in #1052656806058528849?
  • h

    HardAtWork

    03/14/2023, 8:32 AM
    If you are really worried, you can always just set your invalidation period lower
  • b

    boywithkeyboard

    03/14/2023, 8:32 AM
    i mean ofc it can be faked etc but it's better than having it not
  • b

    boywithkeyboard

    03/14/2023, 8:32 AM
    it's just an additional layer, not the only one obv
  • h

    HardAtWork

    03/14/2023, 8:32 AM
    I mean, GeoIP can't really be faked, more subverted. I.e., a VPN would show the exit location
  • b

    boywithkeyboard

    03/14/2023, 8:33 AM
    i know but there's always a way to go around it
  • b

    boywithkeyboard

    03/14/2023, 8:33 AM
    do you have more ideas for additional layers of security?
  • h

    HardAtWork

    03/14/2023, 8:34 AM
    Use Managed Challenges for suspicious behavior?
  • d

    Dani Foldi

    03/14/2023, 8:35 AM
    sure, here's a few - api call rate - regular waf stuff (user agent, other headers, http version) - endpoint call pattern - turnstile
  • b

    boywithkeyboard

    03/14/2023, 8:35 AM
    a link pls
  • b

    boywithkeyboard

    03/14/2023, 8:35 AM
    👍
  • b

    boywithkeyboard

    03/14/2023, 8:36 AM
    i'd only use data from the user agent string though which won't change over a period of 365d (that's how long the access token is valid)
  • h

    HardAtWork

    03/14/2023, 8:36 AM
    https://developers.cloudflare.com/fundamentals/get-started/concepts/cloudflare-challenges/#managed-challenge-recommended
  • a

    alwagyu

    03/14/2023, 11:09 AM
    hi I had some problem with workers and asked the questions here https://community.cloudflare.com/t/cf-workers-mtls-fetch-doesnt-work/482863 CF workers mtls fetch doesn’t work as expected. How can I debug this? Thanks in advance
1...234123422343...2509Latest