I'm a student and new to Tasker.

I would like to be able to close Chrome whenever I go to certain websites (in order to help me get distracted less) but I'm not sure how to go about checking the web address and then creating a task, which closes the Chrome, based on that web address.

1 Answer 1


You would need a plugin that enables you to interface with Chrome (as Chrome doesn't come with a way of other applications seeing the current web address built-in), I couldn't find one with a brief search, but there may be one.

You could set it up so that when you open a specific link in Chrome (either from the Google search app, Facebook, or another app), it scans the intent* for certain URLs, and if it contains them, alerts you, if it doesn't, passes the intent on to Chrome.

This may get you stuck in a loop (it tries to pass the intent on, but catches it again), so you could use a redirection service (i.e. you pass the intent on with something extra in front so that it doesn't redetect it, and then Chrome loads it, gets redirected to the original web address).

One final thought, you could use Tasker to register to receive specific links (the same method that allows links to be opened in apps when you click on them, e.g. Wikipedia).

Anyway, the following link should be useful, I figure you would like to work this out yourself, so I won't provide a step-by-step solution (unless you really want one): http://tasker.dinglisch.net/userguide/en/intents.html

*an intent is a message that is passed between applications on Android, for example, when you click on a link and it opens in your web browser, or you click on an address and it opens in maps.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .