18

DuckDuckGo (DDG) has a feature called bangs that lets you use sequences of characters staring with ! (in this case !so) to redirect your browser to that site's search page. For example, if you type in "toys !a", it will send you to an Amazon search for toys. This is not user-specific, and a "bang", as these sequences are called is present for every user of the site.

Every time that I'm not logged in (or at least in a browser that has not been logged in since a cookie clear / in a private window) and I make a search on a Stack Exchange site via DuckDuckGo, I am presented with a CAPTCHA. This is strange, however, as if I go directly to the URL of a search, I get no such CAPTCHA.

For example, if I search on DuckDuckGo

Is there an R function for finding the index of an element in a vector? !so

I get a CAPTCHA, but if I type directly into the address bar

https://stackoverflow.com/search?q=Is+there+an+R+function+for+finding+the+index+of+an+element+in+a+vector%3F

I do not.

Watching how DDG bangs work with the following curl command, we see that it is not an HTTP redirect, but presumably JavaScript:

curl -v -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:84.0) Gecko/20100101 Firefox/84.0' 'https://duckduckgo.com?q=Is%20there%20%20an%20R%20function%20for%finding%the%20index%20of%20an%20element%20in%20a%20vector \!so'

Result (relevant bit, and run in zsh):

< HTTP/2 200

It's kind of annoying that I have to fill out a CAPTCHA or log in every time I do this, even though it can be avoided by simply using the search bar on Stack Overflow. Can something be done to prevent the CAPTCHA from being presented every time this happens?

Update

I wrongfully assumed that this was network-wide, hence why I asked Meta Stack Exchange. It appears that Stack Overflow is much more likely to CAPTCHA me than Ask Ubuntu is, presumably because it's a larger target for spam and crawlers. I've also noticed that having a referrer of stackoverflow.com seems to reduce the chance of a CAPTCHA, however I've done so much searching now to test that it seems to think I'm a robot every time I do anything on Stack Overflow, and will have to continue testing once the system forgives me.

5
  • FWIW, I am getting the captcha page when I go directly to the URL in a private window Commented Jan 11, 2021 at 3:21
  • @Kodos Johnson testing on my phone now, I do as well, but then again I also get a “suspicious request” page every time I login to an SE site on my phone. I was using the user agent in the question on my computer in case SE’s system cares. Commented Jan 11, 2021 at 5:00
  • 1
    Same here @KodosJohnson, even when I just log-out this gets thrown. I think this is totally intentional, however they might want to consider updating to a more recent version of Captcha, so that you don't always need to click those puzzles.
    – Luuklag
    Commented Jan 11, 2021 at 8:07
  • Possibly related (since Ask Ubuntu was mentioned - it is one of the sites affected by the cookie experiment): Cross Validated asking ad nauseam about accepting cookies?. Commented Jan 18, 2021 at 22:28
  • It appears this is a bit too random to find an exact pattern or workaround for, either that or I've gotten my IP on some permanent CAPTCHA-this-user list Commented Jan 23, 2021 at 18:25

0

You must log in to answer this question.

Browse other questions tagged .