Jump to content
UBot Underground

Identifying or checking the present URL


Recommended Posts

How do I get Ubot to search the actual URL for something? Some sites will throw you to a captcha or even ban page (Twitter/Facebook) if you've done something naughty. I know I can look for an element on the page, but I know I'm in trouble and I need to stop my bot IF I've ended up on a certain page.

 

As an example on Twitter - they may throw you to their captcha page:

 

https://twitter.com/login/captcha?redirect_after_login=%2F&username_or_email=

 

Any way of saying "if the URL has  "captcha" in it - do this"

Link to post
Share on other sites

You can accomplish with an if statement.

 

Then put a contains, use $url and check for your term...

 

Heres an example:

if($contains($url, "text to search for")) {
    then {
        comment("do something")
    }
    else {
    }
}

 

HTH,

Justin

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...