8 ms·
Your user agent
- codexon 13y agoSomewhat related. https://www.google.com/search?q=ip https://www.google.com/search?q=ip
- privong 13y agoAnd, https://duckduckgo.com/?q=ip https://duckduckgo.com/?q=ip
- jlgaddis 13y agoSimilar, but plain text and, thus, easier to parse, if necessary, e.g.: $ IP=`curl https://icanhazip.com/` $ echo $IP
- spoiler 13y agoThis is magnificent! I wish I knew about that before!
- nadaviv 13y agoThere's also ifconfig.me, who returns either an HTML version or a plaintext version depending on the user-agent, so `curl ifconfig.me` returns just the plain IP. There's also a list of other URLs on the homepage (for the host, user agent and a bunch of other stuff).
- samuelkadolph 13y agoI've found ifconfig.me to be excruciatingly when I actually need it. Like takes 10-30 seconds for a response just to get my IP. Sucks that someone got the vanity domain and put a shitty server behind it.
- voltagex_ 13y agoIs there a reason you can't retrieve it via uPNP or similar?
- jaryd 13y agosomewhat easier to remember: curl ifconfig.me
- amjd 13y agoIf you want JSON output, then there is httpbin. curl https://httpbin.org/ip returns { "origin" : "192.168.0.1" } It also supports getting the user agent [0] and headers [1], among other things. [0] https://httpbin.org/user-agent https://httpbin.org/user-agent [1] https://httpbin.org/headers https://httpbin.org/headers
- lloeki 13y agoFWIW: $ curl -4 https://icanhazip.com/ 88.… $ curl -6 https://icanhazip.com/ 2001:470:… (for me it's worth a yay)
- mcosta 13y agocurl: (7) Failed to connect to 2606:f200:0:7:bad:f00d:d00d:2: Network is unreachable
- alexkus 13y agoDepending on what you use the IP for, asking a third party for your IP address could be an interesting attack vector for a MitM attack. e.g. you need your IP to tell a remote server to send you something. You connect to the IP address service to ask for your IP, it should return x.x.x.x but it returns y.y.y.y instead. Any connections to any port on IP y.y.y.y get forwarded to a similar port on IP x.x.x.x meanwhile the MitM takes a copy of all of the data going back and forth. It's not foolproof, and there are a myriad of ways to defend against it, but it's definitely a reason why I wouldn't trust any third party service (even DDG/Google) to get my IP address.
- jhgg 13y agoI've used http://ip.jh.gg http://ip.jh.gg && http://ua.jh.gg http://ua.jh.gg for ip/user agent needs.
- hawkharris 13y agoI wish that Duck Duck Go had more of these useful pop-ups. I replaced Google with Duck Duck Go as my default search engine in Chrome a few weeks ago, and the switch as a whole has been positive. The only things I miss about Google are the instant suggestions for movies, timers, etc. I still love Duck Duck Go, though (esp. the privacy benefits), and I'm sure that they'll broaden their offering of instant pop-up results as time goes on.
- jonemo 13y agoThere's also https://duckduckgo.com/?q=ascii+table https://duckduckgo.com/?q=ascii+table which I use so frequently that I should really just print it out and tape it to the wall.
- myle 13y ago$ man ascii
- unimpressive 13y ago$ man ascii | cat | lp -
- _JamesA_ 13y agoWe have a nominee for the useless use of cat award.
- unimpressive 13y agoRealized after I posted. Too late to fix it. The only reason I made the mistake in the first place is that I wasn't sure if the pager would mess up text output. (What? You expect me to print three or so pages to test an assumption about how *nix utilities work?)
- teddyh 13y agoman -t ascii | lp -
- anoncow 13y agoThe thing I love about ddg is, it links to https versions of pages searched. For eg. Google will link to non https version of Wikipedia results, whereas DDG will link to the https version.
- jlgaddis 13y agoThe EFF'S HTTPS Everywhere plugin (available for Chrome and Firefox) works similarly and for a much greater number of sites: https://www.eff.org/https-everywhere https://www.eff.org/https-everywhere
- noct 13y agoThe thing I love about ddg is they don't seem to do that horrible redirect on some results that Google does. I'll never understand why they do that; if you want to track links, send an async post when I click, don't add an occasional multi-second delay.
- evmar 13y agoIt's because browsers are unreliable about delivering async posts when the page navigates elsewhere. Some people proposed extending the web APIs to provide a reliable mechanism but it was shot down by complaints of "tracking". So now we're left with both tracking and horrible redirects.
- malandrew 13y agoOn this note, is it possible to completely remove my user agent entirely from all my browsers? I'd like to get to the point where the only identifying information my computer gives out about me is information I give out about myself. At the end of the day I shouldn't even suffer as a user because of this because if sites are "doing things right" then they shouldn't be using the user agent for anything at all anymore. They should be using feature testing only. Since it's been such a useless feature for so long, I'm surprised no browser makers have gone as far as removing it entirely (I'm looking at you chrome and firefox)
- SEMW 13y agoIf your goal is to eliminate information that can be used to identify and track you, being the only person on the internet with an empty useragent string may be somewhat less than ideal... https://panopticlick.eff.org/self-defense.php https://panopticlick.eff.org/self-defense.php has some strategies.
- patejam 13y agoIt hasn't been removed because of exactly what you say; it would break a lot of sites. If it is a change that breaks a good portion of the web, they rightfully shouldn't make that change.
- ryalfalpha 13y agoYou can fake it with a number of extensions, but there's a load of fingerprinting options that are sneakier than the user agent. The Tor Browser project has a document outlining changes they had to make to make things less fingerprintable.
- lylepstein 13y agoThere's still a lot of differing behavior in modern browsers that a feature check doesn't expose. Bugs, quirks, performance characteristics (e.g. slow SVG animation in Firefox), and just plain divergences from the spec. HTML5 media is my favorite example of this: mobile devices will actually straight up lie to you when you call certain methods. If you're making even moderate use of any HTML5 features, you're going to end up doing user agent sniffing.
- Spittie 13y agoAnd this is why I've grown to love DDG. My last "wow" moment was when I needed an ascii table two days ago. Searched for it and bam! it's right here in the front page. To anyone skeptic about DuckDuckGo: I've been there. But I've decided to give it a week worth of a try some time ago (Google is just a !g away, anyway), and it's been my default search engine for months now. You might want to give it a try as well. Maybe you'll get hooked on the !bang syntax, maybe you'll get hooked to the 0-click information box, or maybe you'll just switch back to Google. Some queries aren't always on par yet with Google, but I feel that it's getting here. It's mostly lacking on queries about specific errors, and local stuff. For everything else, I feel that I barely switch to Google anymore. And, as a bonus, DDG works perfectly with Firefox Mobile. Google instead has some problems (probably caused by some webkit-specific code).
- prattmic 13y agoWith regards to the ASCII table: `man ascii` I searched for it for ages before realizing that it has been right there at my fingertips for ages.
- Erwin 13y agoAlso useful: "man iso-8859-1" (aka latin-1, the most common Western charset if not using UTF-8). For the Windows version, you'll have to visit http://en.wikipedia.org/wiki/Windows-1252 http://en.wikipedia.org/wiki/Windows-1252 -- non-UTF encoded files are more likely to be that instead of latin-1 (fortunately either is just a s.decode('cp1252') away from Unicode in e.g. Python) There's a surprising amount of data files still being moved around in either of those. If your shell is in UTF-8 mode, you'll learn to recognize either encoding (a single funny character) or the UTF-1252 "encoding" (2 or more chars, where à is often one) where both utf-8 and cp-1252 were used.
- chrismorgan 13y agoI also use DuckDuckGo for most searches, not because of the privacy aspect in the slightest, but because it produces more immediately useful results in most cases. The bangs are great for saving time. I even requested and after a while got given !ngram :-) As you say, Google is just a !g away, and I do find myself still occasionally using that, but most of the time, DuckDuckGo's own search engine matches my requirements better.
- Wingman4l7 13y agoUser agent headers always uneasily remind me of this: https://panopticlick.eff.org/ https://panopticlick.eff.org/
- barking 13y agoIs there no way of preventing your browser supplying enough information to uniquely identify your machine?
- icebraining 13y agoNoScript can prevent most information from being gathered, but unfortunately "no information" is actually pretty unique. Using Chrome on Windows with Flash and Java installed is probably the best way to blend in the crowd and make yourself less unique.
- Wingman4l7 13y agoDon't try to rely on Chrome's Incognito mode or Firefox's Private mode, either. IIRC, I tested Panopticlick on the former and it was actually more unique on that particular PC than Chrome in "normal" mode. Panopticlick has been out for a while, so I'm hoping more and more people are going to hear about it and eventually there will be tools developed to combat that sort of device IDing. I did a quick Google search and I found Secret Agent, a Firefox add-on, that claims to "randomize your Firefox HTTP user agent, to surpress device fingerprinting, and resist web tracking" : https://www.dephormation.org.uk/?page=81 https://www.dephormation.org.uk/?page=81
- voltagex_ 13y agoHow many people here just realized their corporate proxy is adding unwanted headers in every request?
- riyadparvez 13y agoWhat are we supposed to see here?
- misterjinx 13y agoThis made me to switch to DDG (for the second time) as default search engine. I'll give it more time now, I didn't know about all these "goodies". For instance, I just searched for a youtube link and it offered me a box with a link to the wanted video and also the possibility to play it right from there. This is so cool :)
- JackpotDen 13y agoI love the bangs on DDG. arachnids !W (wikipedia) a train !lyrics jambi !grooveshark.com northernlion !YT (youtube) just shove it in the address bar. no waiting for tabbing or hoping google gets it right.
- bttf 13y agoJust want to share that VIM keys for up and down (j/k) work when selecting search results.
- Igalze 13y agoLove DDG but discovering your UA on SERP like that isn't very useful. If you're someone who needs to know your own UA, you`ll probably need it several times a day or more. Searching for "user agent" is the long way to do it, there are browser extension for that. Still, nice Easter Egg from the best Duck in town.