bots

Blocking bots by modifying htaccess

点点圈 提交于 2019-12-10 11:33:58
问题 I am trying to block a couple bots via my htaccess file. On Search Engine Watch it is recommended to use the below. I did block these bots in the robots.txt file but they are ignoring it. Here is code from Search Engine Watch: RewriteEngine on Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_USER_AGENT} ^Baiduspider [NC,OR” RewriteCond %{HTTP_USER_AGENT} ^Sogou RewriteRule ^.*$ - [F” My current htaccess file is as below. How exactly would I modify my current .htaccess with the above

How to break formflow in every moment i type exit or cancel?

谁说胖子不能爱 提交于 2019-12-10 11:29:23
问题 I'm creating a chatbot in .Net C# using BotFramework. In one of my dialog when i start to fill a form flow i cannot exit from flowform till in the moment i will fill all the flow . Exist any possibility to exit and to leave form ? This is my code : LuisDialog.cs : [LuisIntent("balance")] public async Task balance(IDialogContext context, LuisResult result) { var balanca = new FormDialog<BalanceForm>( new BalanceForm(), BalanceForm.BuildForm, FormOptions.PromptInStart, result.Entities); context

php script that runs on the server without a client request

99封情书 提交于 2019-12-10 11:26:39
问题 I am working on a site that require a php script running on a server without any request, it is a bot script that keeps (not full time but at least once a day) checking client accounts and send alert messages to clients when something happens. any ideas are appreciated. 回答1: Assuming you need to do this on linux, you may run any php script from the browser and from the CLI as well. You may run a simple php script: <? echo "Ana are mere"; ?> like this: php -f ./index.php Be careful about file

Create cards dynamically by looping a file in Microsoft Bot Framework

谁说胖子不能爱 提交于 2019-12-10 11:00:34
问题 I have been experimenting with Microsoftbot.dialog('showShirts', function (session) { var msg = new builder.Message(session); msg.attachmentLayout(builder.AttachmentLayout.carousel) msg.attachments([ new builder.HeroCard(session) .title("Classic White T-Shirt") .subtitle("100% Soft and Luxurious Cotton") .text("Price is $25 and carried in sizes (S, M, L, and XL)") .images([builder.CardImage.create(session, 'http://petersapparel.parseapp.com/img/whiteshirt.png')]) .buttons([ builder.CardAction

Microsoft Bot Framework LUIS in waterfall conversation

左心房为你撑大大i 提交于 2019-12-10 10:01:48
问题 I have an existing waterfall conversation. I want to adapt it so that it can extract data from more complex user responses to the bot's questions. In my LUIS app I have created an intent called GetLocation which is trained to find an entity called Location . An example of this is the user typing "I am looking in Bristol" which would match the entity "Bristol". This is what I currently have: function(session) { builder.Prompts.text(session, "Hello... Which city are you looking in?"); },

How to receive an image send by users?

家住魔仙堡 提交于 2019-12-10 00:27:34
问题 I am programming a chatbot and I want the user to upload an image so that the bot can receive it and save the image into the User profil data. But I am quite new in c# and I am a bit lost... I am using the MS Bot Framework. To build the dialog, I use Waterfall Step and to catch the user reply, I use Prompt. To receive attachment I saw on MS documents that it exists an AttachmentPrompt class. But I am a bit confused on how to use it and how I can save the file in the user profil. This is how I

Checkbox as alternative to captcha?

末鹿安然 提交于 2019-12-09 18:27:31
问题 Does a checbox provide an alternative to using captcha on website? I am thinking i i need to use captcha for user signup. Instead if i put a checkbox for the terms like "By clicking here I agree...." can that solve the bots issues or is captcha required in addition to the checkbox? 回答1: One thing you can do with a checkbox is to make a honeypot. To do so, you would make a checkbox and hide it with CSS (because bots, as a rule, don't care about CSS). If the box is checked, then it's probably a

Malicious crawler blocker for ASP.NET

喜夏-厌秋 提交于 2019-12-09 12:41:49
问题 I have just stumbled upon Bad Behavior - a plugin for PHP that promises to detect spam and malicious crawlers by preventing them from accessing the site at all. Does something similar exist for ASP.NET and ASP.NET MVC? I am interested in blocking access to the site altogether, not in detecting spam after it was posted. EDIT: I am interested specifically in solutions that will detect access patterns to the site - these would prevent screen scraping the site as a whole, or at least make it a

Telegram bot weird error : Bad Request: wrong file identifier/HTTP URL specified

倖福魔咒の 提交于 2019-12-09 02:28:12
问题 I am sending message to telegram channel using bot. With using webhook method. I'm sending file_id via the link. I got the file_id from a channel post. For some files like GIF & video format (MP4), when i use this code: $url = 'https://api.telegram.org/bot'.token.'/sendVideo?chat_id='.uid."&video=".$file."&caption=" .urlencode($caption); file_get_contents($url); i get such this error : {"ok":false,"error_code":400,"description":"Bad Request: wrong file identifier/HTTP URL specified"} I really

How to stop bots and spams from submitting comments?

空扰寡人 提交于 2019-12-08 22:11:36
问题 Currently I am using captcha image I created text field and hide it using javascript. i want its value to be empty on server side, because bots are supposed to fill all the fields on the form. if value isn't empty it it does not process comment. I also use timestamps to check how long it took while submitting the comment. I supposed if the comment was submitted within 15 seconds, it comes from bot so i also stop processing the comment. But still I couldn't control bots to submit my comments