Jump to content
UBot Underground

How To Block Certain Urls Of Being Opened


Recommended Posts

Hi guys, i am trying to make a bot which will connect to my website , but i want to block certain pages to not be accessible when browsing the website via the ubot interface.

For example i want  cafegourme.com/4-paketirano-kafe to can be opened but if anyone click on Contact us link (cafegourme.com/content/6-kontakti) not to be taken to the actual page, preferably to stay on the same page and receive error "action not permitted" ;

I was thinking a lot about this, searched in here and in Google but nothing found..

I would appreciate any suggestions.

Link to post
Share on other sites

I dont think this would be a very good way but it is a way

 

 

loop while($comparison(1,"=",1)) {
    if($comparison($url,"= Equals","http://www.ubotstudio.com/forum/index.php?/topic/18203-how-to-block-certain-urls-of-being-opened/")) {
        then {
            load html("<center><b><h1 style='color:red;'>this action is not permitted</h1></b></center>")
            navigate("http://www.ubotstudio.com/forum","Wait")
        }
        else {
            wait(0.2)
        }
    }
}

Link to post
Share on other sites

heres a lot better code for this

 

just have it execute this once the page loads,and change the href to whatever

 

run javascript("var myHref = document.getElementById(\"contact-link\").getElementsByTagName(\"a\")
myHref[0].href=\'{$url}\'")

 

 

but this has the problem that if the user changes page and comes back to this,if this script doesnt execute the link will not be disables,hope its a help though

  • Like 1
Link to post
Share on other sites

use "change attribute"

 

to change url or even remove the link and text completely

 

or use javascript to do this

remove element

 

 

but here is how to change the url to  bing

navigate("http://www.ubotstudio.com/forum/index.php?/topic/18203-how-to-block-certain-urls-of-being-opened/#entry113023","Wait")
wait for element(<title="Homepage">,"","Appear")
change attribute(<title="Homepage">,"innertext","Go to Bing")
change attribute(<href="http://www.ubotstudio.com/forum">,"href","http://bing.com")
alert($scrape attribute(<title="Homepage">,"href"))
wait(.5)
click(<title="Homepage">,"Left Click","No")

where the url for bing is you can just leave blank same as the link text and they wont see it.

 

play around, enjoy, and have fun :)

 

CD

Link to post
Share on other sites

heres a lot better code for this

 

just have it execute this once the page loads,and change the href to whatever

 

run javascript("var myHref = document.getElementById(\"contact-link\").getElementsByTagName(\"a\")

myHref[0].href=\'{$url}\'")

lol this was not there when I arived.

 

but is exactly what I meant with JS

Link to post
Share on other sites

lol this was not there when I arived.

 

but is exactly what I meant with JS

 

Ha Ha

 

Your code was not their when I posted that neither,because I always forget how useful the change attribute command is,no JS needed

 

change attribute(<href="http://cafegourme.com/content/6-kontakti">,"href","http://cafegourme.com/4-paketirano-kafe")

Link to post
Share on other sites
  • 5 months later...

this is awesome Code Docta (Nick)

But after clicking on something else on a website it shows the link again.

 

Is there a way to run the code everytime a person clicks on any link?

 

use "change attribute"

 

to change url or even remove the link and text completely

 

or use javascript to do this

remove element

 

 

but here is how to change the url to  bing

navigate("http://www.ubotstudio.com/forum/index.php?/topic/18203-how-to-block-certain-urls-of-being-opened/#entry113023","Wait")
wait for element(<title="Homepage">,"","Appear")
change attribute(<title="Homepage">,"innertext","Go to Bing")
change attribute(<href="http://www.ubotstudio.com/forum">,"href","http://bing.com")
alert($scrape attribute(<title="Homepage">,"href"))
wait(.5)
click(<title="Homepage">,"Left Click","No")

where the url for bing is you can just leave blank same as the link text and they wont see it.

 

play around, enjoy, and have fun :)

 

CD

Link to post
Share on other sites
  • 3 years later...

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...