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)

Gadget_Guy 12-18-2014 05:39 PM

Quote:

Originally Posted by Simon Lloyd (Post 2527915)
Blocked bots shouldn't show anywhere except in stats...etc

Awesome!

D.

Gadget_Guy 12-18-2014 05:41 PM

1 Attachment(s)
Based on this screen capture from today.... would you recommend I add anything additional to my list in the mod?

D.

ozzy47 12-18-2014 08:12 PM

Quote:

Originally Posted by Gadget_Guy (Post 2527950)
Based on this screen capture from today.... would you recommend I add anything additional to my list in the mod?
D.

Looks fine to me. :)

bzcomputers 12-18-2014 08:23 PM

Was averaging about 400 Baidu bots a day still getting through before this last update. Now after 24 hours I'm seeing zero. Thanks!

ozzy47 12-18-2014 08:24 PM

Excellent, glad to hear it is stopping them for you. :)

princesspepper 12-19-2014 08:05 AM

Quote:

Originally Posted by ozzy47 (Post 2527624)
Simon has the changes, when he has time he will go over it, and if he wants, release a update. :)

Quote:

Originally Posted by Simon Lloyd (Post 2527692)
Ozzy47's xml has been uploaded and an update sent out, thanks Chris nice work! :)

Thanks guyz!

Black Snow 12-19-2014 08:37 AM

I'm working on a way to log all the blocked bots. Not sure if it will record every instance or just a total number for each bot. Will share my findings when I'm done.

ozzy47 12-19-2014 09:16 AM

Say what? This is already recording the blocked bots. In four different possible ways, in a log file, in a thread, in a email and the bots blocked count.

Now writing each bot individually to the DB, is not a good idea, as the table would grow too big, and be a giant PITA when you query it to get the info. Think about it, in just five days, only blocking baidu, I have a count of 9062.

Now lets take that and round it to 10,000 for seven days. Lets say I am going to block the 281 bots I have in my list. 281 x 10,000 x 52 = 146,120,000 entries a year. :eek:

Sure each bot is not going to hit me 10,000 times a week, but you can see, this can really grow fast. ;)

And my site is not that busy, now imaginge on a busy site, the entries to the table in the DB could be 250,000,000 plus a year. Now run a query to retrieve the info from that table, and it would hurt the site every time it is ran. :mad:

IMO, the best way to go is how it is now, just increase the count every time a bot is blocked, and get that number and display it. :)

Simon Lloyd 12-19-2014 09:45 AM

Yep, you'd have to list every bot in the database then increment it's count every time you block it, that would be the easier way but your actually talking about constantly querying the database with redas and writes - definitely not a good idea, save your resources for your members.

ozzy47 12-19-2014 09:48 AM

Yes, I know Simon, I thought about doing it that way also, but the payoff, is not worth the trouble. It would bloat the mod, and become a resource hog in no time. :)


All times are GMT. The time now is 06:35 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.01553 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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