How to create a bookmarklet that refuses robot verification cookies
The site currently presents a spam and robot-verification page rather than useful business information, so its owner, services and purpose cannot be established from what a visitor sees. That makes visual trust signals especially fragile: a button saying “Verify you are human” can belong to a legitimate anti-bot service or to a phishing page built to copy one.
Creating a browser bookmarklet that automatically refuses robot verification cookies is useful as controlled cleanup, not as a way to defeat a human challenge. A bookmarklet can inspect cookies exposed to JavaScript on the current origin and expire likely challenge artefacts. It cannot solve a CAPTCHA, read HttpOnly cookies, or stop a server from setting a new cookie in an HTTP response. Standard browsers also require you to click the bookmarklet, so “automatic” refers to the scan and removal after that click.
Understand what the bookmarklet can safely do
Think in categories rather than treating every cookie as a robot check. A verification system may use a short-lived challenge marker, a clearance token, a bot-management cookie, or a general session identifier that also carries preference data. The last category matters because clearing it can sign you out or discard a shopping trolley. The bookmarklet should therefore match names narrowly, leave unrelated sessions alone, and run against the origin where you noticed the problem.
The browser security model sets firm limits. Script running in a page can normally see and overwrite only non-HttpOnly cookies that apply to the current host and path. It cannot recover a protected cookie’s value, discover every domain or path variant, or intercept a Set-Cookie header sent by the server. The bookmarklet also has no authority over another tab, a different website, or cookies stored inside a separate browser profile.
Layout is another clue, not proof: compare suspicious frames with page border references and check whether the address, spelling and branding agree. For covered Australian organisations, the Privacy Act 1988 and Office of the Australian Information Commissioner guidance make cookie transparency and consent relevant whenever cookie data can identify a person. Privacy rules do not turn an unknown verification page into a trustworthy one, and they do not grant permission to interfere with someone else’s account.
Inspect the challenge and confirm the site
Start in the browser’s developer tools rather than guessing from the challenge wording. In Chrome or Edge, open Developer Tools, choose Application, then Storage and inspect Cookies for the exact host. In Safari, use Storage or Manage Website Data. Record the cookie’s name, domain, path, expiry and HttpOnly flag. Those details tell you whether the script can see it and whether you should remove that one entry by hand instead.
The visible screen does not establish who operates the service, so identity needs independent support. The linked publisher background details may help identify a claimed organisation, but a page supplied by the same suspect domain cannot verify itself. Look for an independent Australian business register, a verified social account, a support address on a separate domain, or a phone number quoted by a credible third party.
Australian audiences encounter challenges through ordinary channels: a .com.au retailer, a Brisbane council portal, a Melbourne service provider or a national government login. Shared hosting and common security products mean a vendor’s cookie name may reveal little about the business. Calling something a “phish” is common Australian shorthand, not authentication; confirm the registrable domain and reason for the check first, or a legitimate session cookie may be mistaken for hostile robot data.
Build the cookie cleanup bookmarklet
Create a bookmark, open it for editing, and paste the following as its URL. The one-line code scans names visible to document.cookie, matches common challenge wording and selected vendor names, then writes each match with Max-Age=0 for both the site root and the current path. A successful match triggers one reload so the page can request a fresh session.
javascript:(()=>{const r=/(challenge|captcha|turnstile|robot|human[_-]?check|verif(?:y|ication)|__cf_bm|cf_clearance)/i,p=['/',location.pathname],s=location.protocol==='https:'?';Secure':'';let c=0;for(const x of document.cookie.split(';')){const n=x.split('=')[0].trim();if(r.test(n)){c++;for(const q of new Set(p))document.cookie=n+'=;Max-Age=0;Path='+q+';SameSite=Lax'+s}}if(c)location.reload()})()
The regular expression is deliberately conservative, but names vary by vendor and can be surprisingly broad. Edit the r pattern if developer tools show a different name, and remove a pattern if it catches an unrelated application cookie containing a word such as “verification”. The code checks names rather than values, which reduces false positives but will miss a challenge stored under an opaque identifier. It also does not clear local storage, service workers or cached pages.
Use it only on a browser session you are allowed to manage, and do not treat cookie removal as permission to bypass an access control. It acts on the current origin, not the whole browser, and deleting a cookie at / or at the present pathname does not reliably remove a domain-scoped cookie stored under another path. Common names such as __cf_bm and cf_clearance may also be set as HttpOnly, so this script often cannot remove them. Browser-managed site-data controls or a manual, exact-cookie deletion are safer in those cases.
Install and test the bookmarklet safely
Most current desktop browsers can run this as a normal bookmarklet. Keep the JavaScript on one line, including the leading javascript:, because bookmark editors may mangle line breaks or spaces. Test with a harmless site before using it on a login or checkout page.
Use this setup checklist:
- Create a bookmark on the browser’s favourites or bookmarks bar, then open the bookmark’s edit command.
- Replace its address with the complete one-line script, including the
javascript:prefix. - Give it a recognisable name such as
Clear verification cookiesso it is not clicked by accident. - Keep it on the bookmarks bar for one-click access; on managed work devices, ask the IT administrator before changing browser settings.
Run this verification routine:
- Open the storage panel for the affected site and note the exact challenge cookie before clicking the bookmarklet.
- Run the bookmarklet and wait for the single automatic reload, then compare the storage panel with your notes.
- Confirm that only the intended cookie disappeared and that sign-in, basket and preference cookies remain unchanged.
- If the challenge returns immediately, stop testing and record the cookie name, site address and timing for the next diagnostic step.
The bookmarklet is stored locally, so it adds no separate download to an NBN connection or a Telstra 5G hotspot; the page’s normal reload still uses data. On a council or business device shared by staff in Perth or Adelaide, leave browser configuration to the local IT team. Safari on iOS also lacks the same straightforward bookmark-URL editing found on desktop, so set it up on a Mac or use the browser’s manual site-data controls.
Troubleshoot loops and close the browser session cleanly
If the challenge comes back immediately, the site is probably treating a clearance cookie or server-side signal as mandatory. The bookmarklet can remove the old artefact, but it cannot make the server trust the browser or complete the challenge. Repeated clicks can create a reload loop, so stop after one test, restore any normal session you removed, and use the site’s support channel or manual browser controls for the affected entry.
Before trusting a human-check screen, look for language that pressures you into urgent payment, credential entry or a download. A human-check phishing guide can help with that comparison, while Scamwatch, run by the Australian Competition and Consumer Commission, provides local guidance for reporting suspicious messages and sites. A real security check should explain its purpose, resolve from the site’s domain or a disclosed security provider, and avoid asking for passwords, card details or remote-access software.
Do not solve an unknown site’s identity problem by deleting every cookie. Broad clearing can remove Australian banking, shopping or government-portal sessions along with the challenge, leaving you to recover accounts from another device. If the site still identifies no organisation or service, treat that as the central finding: browser cleanup may remove a stale cookie, but it cannot turn unidentified content into a trustworthy destination.
The next step is to save the script in your desktop bookmark manager, test it on one known, non-sensitive page, and record the cookie name before and after the reload.