vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Ban Spiders by User Agent (https://vborg.vbsupport.ru/showthread.php?t=268208)

Delphiprogrammi 04-12-2014 07:47 PM

Hi,

I have the impression this hack is blocking pingdom bots (i'm a pingdom customer)

Code:

Ping
PingALink

Pingdoms uses this useragent "Pingdom.com_bot_version_1.4_(http://www.pingdom.com)"

Max Taxable 04-12-2014 07:48 PM

Quote:

Originally Posted by Delphiprogrammi (Post 2492876)
Hi,

I have the impression this hack is blocking pingdom bots (i'm a pingdom customer)

Code:

Ping
PingALink

Pingdoms uses this useragent "Pingdom.com_bot_version_1.4_(http://www.pingdom.com)"

Then just, remove those from the definitions in options.

Although, hard to see how those definitions are blocking that UA.

Simon Lloyd 04-13-2014 04:48 AM

"Ping" would certainly block pingdom, PingAlink would not.

ozzy47 09-06-2014 09:50 PM

I had the Create New Thread turned off for about a year now, and I just re-enabled it, and for some unexplainable reason, it refuses to write a new thread when a bot visits the site. Also when I enable that option it stops writing to the log, I am puzzled. :confused:

Yes I have it set to a valid userid, and a valid forumid.

Simon Lloyd 09-07-2014 03:22 AM

Are you using any kind of extra caching mod or optimising mod? Dbtech vboptomise can cause anomalies like this, an uninstall then reinstall could fix it, I suggest before you reinstall you change the version number to say 3.0.4 just to prompt a datastore change.

ozzy47 09-07-2014 10:45 AM

Yeah using the vBoptimize mod.

I changed it up a bit, instead of adding a thread, I have it writing to the DB now, so I can pull the number of blocked bots/spiders from there. :)

Simon Lloyd 09-08-2014 07:01 AM

Just as long as you're only logging the count as other entries...etc could bloat your database ein no time at all let alone the number of calls to the database could impede a users experience on a large board. :)

ozzy47 09-08-2014 08:56 AM

Yeah I am going to have to monitor it and see how it goes. :)

Black Snow 09-15-2014 08:51 AM

Is there a new more up-to-date list of spiders to ban?

Black Snow 09-15-2014 08:52 AM

Quote:

Originally Posted by ozzy47 (Post 2514025)
Yeah using the vBoptimize mod.

I changed it up a bit, instead of adding a thread, I have it writing to the DB now, so I can pull the number of blocked bots/spiders from there. :)

Could you share the code to store them to the database?

Max Taxable 09-15-2014 01:02 PM

Quote:

Originally Posted by Black Snow (Post 2515226)
Is there a new more up-to-date list of spiders to ban?

Lists for this and "Stop Hostnames from Registering" here.

ozzy47 09-15-2014 11:37 PM

Quote:

Originally Posted by Black Snow (Post 2515227)
Could you share the code to store them to the database?

Well it is not something that is easily done, it requires a new table in the DB, a edit to the plugin for this mod, a new plugin to render the template to display the info and a new template created.

Black Snow 09-16-2014 10:10 AM

Quote:

Originally Posted by ozzy47 (Post 2515307)
Well it is not something that is easily done, it requires a new table in the DB, a edit to the plugin for this mod, a new plugin to render the template to display the info and a new template created.

Thanks for the reply ozzy. I am capable of doing the necessary adds/edits if you are willing to share them?

ozzy47 09-16-2014 10:20 AM

Give me some time to put it together, and I will post the instructions on my site. I should be able to have it together by this weekend.

Black Snow 09-16-2014 10:31 AM

Thank you very much ozzy. I'd like your post but you know how it goes lol.

ozzy47 09-16-2014 10:52 AM

LOL, yes I am all to familiar with that. :)

Black Snow 09-25-2014 08:54 PM

Any luck with this ozzy47?

ozzy47 09-25-2014 09:11 PM

Not just yet, got a bit tied up. I'll try to put instructions together this weekend.

Black Snow 10-08-2014 08:21 AM

Any update ozzy my man?

Gadget_Guy 11-23-2014 10:27 PM

Ever since putting this in place my users who use Opera are complaining they can't connect to the site.

Any thoughts?

D.

ozzy47 11-23-2014 10:29 PM

What is in your list?
What is one of the users complaining useragent string?

Gadget_Guy 11-23-2014 10:33 PM

This is my list:

(Deleted)

What do you mean "What is one of the users complaining useragent string?"

Tell me how to get this info for you

D.

ozzy47 11-23-2014 10:36 PM

In your online.php, set User Agent: to Yes

Then copy the useragent string of one of the members that was complaining, and paste it here.

Max Taxable 11-23-2014 10:44 PM

Quote:

Originally Posted by Gadget_Guy (Post 2523895)


What do you mean "What is one of the users complaining useragent string?"

Tell me how to get this info for you

D.

Helpful little template edit makes it shown all the time:


https://vborg.vbsupport.ru/showthread.php?t=306009

Remove this from your list:

Opera/9.80

ozzy47 11-23-2014 10:45 PM

Yep, that would do it. :)

You should also edit your above post and remove the list, don't need everyone to see it. :)

Gadget_Guy 11-23-2014 11:11 PM

Thanks Guys!

Many thanks!

My site is getting HAMMERED right now by bots.... need to get the server loads down...

Fingers crossed that this will do the trick.

(I also updated my robots.txt with some additional stuff)

- For security reasons... would either of you be willing to review it via PM?

D.

ozzy47 11-23-2014 11:12 PM

What is it you need reviewed?

Gadget_Guy 11-23-2014 11:27 PM

Just a sanity check of my robots.txt file I created.

D.

ozzy47 11-23-2014 11:31 PM

Sure, you can PM it to me, but TBH it's not gonna stop bad bots, as they ignore it.

Simon Lloyd 11-24-2014 04:55 AM

Remember that this mod will only ban useragents that have the word or entry you have entered in the ban list, you can quite freely put your ban list from the mod in a txt file and attach it to a post and we'll help you with it.

tanzeelniazi 12-04-2014 04:53 PM

Apache Synapse ESB Spider is a Bad or Good ? i think is not good because so many IP i see.
How to banned via Spider ban ?
I add this type
Code:

almaden
Apache Synapse ESB
Apache Synapse ESB Spider
Synapse
Anarchie
AhrefsBot
Artabus
ASPSeek

Useragent is
Quote:

Mozilla/4.0 (compatible; Synapse)
Add spider in my banned list but still showing Apache spiders :( why ?

Simon Lloyd 12-04-2014 05:22 PM

Is that all that is in their useragent?

Simon Lloyd 12-04-2014 06:30 PM

You can block that entire string or try blocking this Synapse-HttpComponents-NIO

The Apache Synapse is an abused proxy, more ofetn than not it's used to check for vulnerabilities against different attacks like DDOS and sql injection.

ozzy47 12-05-2014 10:55 AM

TBH all you need to add is Synapse. I have only that in the block list, and it is successful at blocking all of them.

Remember, if you add it to the list, it will take as much time as you have set in vBoptions for them to disappear, from the online list, as you have set for the timeout.

So if your timeout is set to 15 min, and you add a bot, it will take at least that long before they no longer appear in who's online. :)

tanzeelniazi 12-05-2014 04:51 PM

i added like this m correct ??
if i am wrong how to add full string in spider list

Gadget_Guy 12-06-2014 02:48 AM

1 Attachment(s)
Why is the darn Baidu spider so hard to stop?

I have the mod installed, have had it running for weeks... but this darn spider keeps infiltrating the site slowing things down.

It is in my list.... but if you look at who's online... there they are....

(attached txt of my spider list)

(also... based on what you are seeing... should I be adding any of the others seen in the screen shot to the list? if so... what are the entries?)

Thanks,

D.

Max Taxable 12-06-2014 02:53 AM

Quote:

Originally Posted by Gadget_Guy (Post 2525958)
Why is the darn Baidu spider so hard to stop?

I have the mod installed, have had it running for weeks... but this darn spider keeps infiltrating the site slowing things down.

It is in my list.... but if you look at who's online... there they are....

(attached txt of my spider list)


(also... based on what you are seeing... should I be adding any of the others seen in the screen shot to the list? if so... what are the entries?)

Thanks,

D.

It is a weird thing Ozzy was having on his site too, and I just assumed it was a v4 thing since I had no occurrences of Baidu at all on my boards, which were all 3.8s.

I bought a existing v4 though, and haven't seen a baidu since I installed this Mod. So I'm really clueless as to how they get through on you and Ozz.

CAG CheechDogg 12-06-2014 04:07 AM

The Baidu spider can take up to a couple if not few months to completely disappear and actually obey the no crawl rule when adding this mod or even blocking it through your robots.txt ... I have it blocked everywhere and it took maybe 3 days before I didn't see it again ... the best thing to do for me was also add a huge IP block to my htaccess file that completely blocks all of China and a couple other Asian countries from accessing my site ...

Simon Lloyd 12-06-2014 09:54 AM

Quote:

Originally Posted by Gadget_Guy (Post 2525958)
Why is the darn Baidu spider so hard to stop?

I have the mod installed, have had it running for weeks... but this darn spider keeps infiltrating the site slowing things down.

It is in my list.... but if you look at who's online... there they are....

(attached txt of my spider list)


(also... based on what you are seeing... should I be adding any of the others seen in the screen shot to the list? if so... what are the entries?)

Thanks,

D.

They are not slowing your site down and not actually getting anywhere, you are using Paul M's who has visited mod, both his mod and mine are working fine, his mod registers them at the time of call for page load as mine redirects them at the same time :)

Simon Lloyd 12-06-2014 09:55 AM

Quote:

Originally Posted by tanzeelniazi (Post 2525880)
i added like this m correct ??
if i am wrong how to add full string in spider list
http://awesomescreenshot.com/0a93z97i2b

That appears correct.


All times are GMT. The time now is 05:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01794 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete