So sometimes you know how websites sometimes asks for your location? So is there a way to spoof my location and pretend I am in some country or something?
Well, Tor or a vpn are probably the first things I think of When I hear of spoofing a location. Keep in mind that using these things don't make you invulnerable to finding out your location or will make you anonymous on the internet.
In Firefox about:configs settings you can search for geo.enabled and set the boolean to false.