Jump to content
UBot Underground

compare URL with text file (blacklist)


Recommended Posts

hey, i got stuck... again.

 

i am trying to script some sort of blacklist.

the bot should check a text file for the actual URL. if the URL is on the list, the bot should override this site and proceed with the next.

for now, i put $url into %checkurl list and my blacklist.txt into %channelDB list. whatever command i use, the bot did not recognise the values at all.

could someone give me a hint on this please?

Link to post
Share on other sites

a fast way to match without looping a complete list is the $contains function

 

load the textfile as a #var in ubot the u can match like if($contains(#var, "http://myblacklisturl.com")) { then {} else {} }

the containsfunction is mosttime faster the a loop to a list

 

hope that helps

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