vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Anti-Spam Options - Hostname or Useragent Registration Ban (https://vborg.vbsupport.ru/showthread.php?t=279110)

nhawk 03-21-2014 10:13 PM

Quote:

Originally Posted by BadgerDog (Post 2488827)
PM's you with list, which is the one Ozz recommended... :)

Regards,
Doug

LOL, this one was simple.

It's blocked because 'tor' is in the list (monitor5.securi.net). So it did it's job.

In either case, securi.net has no business accessing register.php, so the add-on did it's job.

It didn't ban securi from accessing the site, it just stopped it from registering.

So, re-enable the add-on.

Max Taxable 03-21-2014 10:16 PM

Quote:

Originally Posted by nhawk (Post 2488830)
LOL, this one was simple.

It's blocked because 'tor' is in the list (monitor5.securi.net). So it did it's job.

In either case, securi.net has no business accessing register.php, so the add-on did it's job.

It didn't ban securi from accessing the site, it just stopped it from registering.

So, re-enable the add-on.

And that is a oversight on my own part, since I compiled most of that list.

I'll be recommending "tor" be removed post haste. I think we have it covered with another definition anyway.

BadgerDog 03-21-2014 10:23 PM

Quote:

Originally Posted by nhawk (Post 2488830)
LOL, this one was simple.

It's blocked because 'tor' is in the list (monitor5.securi.net). So it did it's job.

In either case, securi.net has no business accessing register.php, so the add-on did it's job.

It didn't ban securi from accessing the site, it just stopped it from registering.

So, re-enable the add-on.

Unfortunately, Sucuri needs to access out site as it's a primary security monitor and does complete server scans every 1/2 hour...

Regards,
Doug

BadgerDog 03-21-2014 10:26 PM

Quote:

Originally Posted by Max Taxable (Post 2488831)
And that is a oversight on my own part, since I compiled most of that list.

I'll be recommending "tor" be removed post haste. I think we have it covered with another definition anyway.

Ok, I removed tor and have saved the mod and restarted it.. :)

Thanks for all the help guys... :up:

Regards,
Doug

nhawk 03-21-2014 10:30 PM

Quote:

Originally Posted by BadgerDog (Post 2488832)
Unfortunately, Sucuri needs to access out site as it's a primary security monitor and does complete server scans every 1/2 hour...

Regards,
Doug

It can access the site. The add-on doesn't stop that. It just threw an error to it saying it can't register.

Max Taxable 03-21-2014 10:42 PM

Quote:

Originally Posted by BadgerDog (Post 2488832)
Unfortunately, Sucuri needs to access out site as it's a primary security monitor and does complete server scans every 1/2 hour...

Regards,
Doug

Once again... It does not and should not be trying to register. That is not part of its normal behavior.

BadgerDog 03-21-2014 10:42 PM

Quote:

Originally Posted by nhawk (Post 2488835)
It can access the site. The add-on doesn't stop that. It just threw an error to it saying it can't register.

Roger that ... :up:

Thanks again... :)

Regards,
Doug

lazytown 03-22-2014 07:35 PM

Quote:

Originally Posted by ozzy47 (Post 2488655)
TBH, I would just turn off the PM's, once you know the mod is working after sending you some PM's, there is no need for them, you know it is working, so turn them off. :)

I prefer to keep logs, but a log with dozens of PMS a day is unmanageable. See ask the recent posts above for an example of why you'd would to keep a record so that you can search if later (sucuri being blocked).

nhawk 03-22-2014 09:36 PM

Quote:

Originally Posted by lazytown (Post 2488994)
I prefer to keep logs, but a log with dozens of PMS a day is unmanageable. See ask the recent posts above for an example of why you'd would to keep a record so that you can search if later (sucuri being blocked).

Securi was not blocked from the site. Nobody is blocked from the site with this mod. Securi was blocked from registering. There's a big difference.

https://vborg.vbsupport.ru/showpost....7&postcount=86

ozzy47 03-23-2014 04:39 PM

Ok just a follow up on the Sucuri situation.

Sucuri will scan your site with several different user-agents (including the one you mentioned).
During this scan, the bot will crawl through all links found in the site, and looks like it's hitting the registration link.

Sucuri will not follow the robots.txt directives. Since it tries to behave as a "real user" it'll ignore that file. The only way to do it would be creating a .htaccess file to redirect SiteCheck to a 404 or a different page when hitting those forms.

So you can add tor back to the list if you wish, and add this to your htaccess file.

Code:

<Filesmatch "^(register)\.php$">
order allow,deny
allow from all
deny from 192.155.95.139
deny from 66.228.40.185
</Filesmatch>

That will stop Sucuri from hitting the registration trigger, and it is what they recommended to me. :)

nhawk 03-24-2014 01:48 PM

I am still curious what difference it makes if Securi is sent to the error page when it hits register.php or not?

It seems Securi is scanning pages for malware and the error page shouldn't have any malware.

Or, does Securi know exactly what register.php is suppose to contain and they throw an error on their end if it contains anything else?

ozzy47 03-24-2014 04:36 PM

I believe they just check it for malware.

Max Taxable 03-29-2014 01:34 AM

Hey Snog... Any plans to make the filter list one per line, so it has to be exact match to get caught? Example - just had a spammer register from "Biznet" but adding this to the filter is going to catch everything that has 'biz' or 'net' in the name.

ozzy47 03-29-2014 01:35 AM

Yeah that would be a optimal way to do it. :)

nhawk 03-29-2014 10:17 AM

Quote:

Originally Posted by Max Taxable (Post 2490185)
Hey Snog... Any plans to make the filter list one per line, so it has to be exact match to get caught? Example - just had a spammer register from "Biznet" but adding this to the filter is going to catch everything that has 'biz' or 'net' in the name.

No it won't. It will catch BIZNET.

The entire word has to be matched. The word isn't broken down into smaller sections for detection. So bizmarknet would NOT be caught. But badbiznet would.

Max Taxable 03-29-2014 11:29 AM

Quote:

Originally Posted by nhawk (Post 2490209)
No it won't. It will catch BIZNET.

The entire word has to be matched. The word isn't broken down into smaller sections for detection. So bizmarknet would NOT be caught. But badbiznet would.

How then did we catch "monitor5.securi.net" using the word 'tor' in the filter?

nhawk 03-29-2014 01:02 PM

Quote:

Originally Posted by Max Taxable (Post 2490215)
How then did we catch "monitor5.securi.net" using the word 'tor' in the filter?

The plain word 'tor' was in the list. That matched the tor in "monitor5.securi.net"

See the difference..

BIZNET

bizmarknet would NOT be caught.

but somethingbiznetelse would be.

Max Taxable 03-29-2014 05:51 PM

Quote:

Originally Posted by nhawk (Post 2490219)
The plain word 'tor' was in the list. That matched the tor in "monitor5.securi.net"

See the difference..

Okay... Yep I get it.

With "Ban Spiders by User Agent" we don't get such matches, I assume because the definitions are line by line instead of separated by commas?

nhawk 03-30-2014 10:49 AM

Quote:

Originally Posted by Max Taxable (Post 2490301)
Okay... Yep I get it.

With "Ban Spiders by User Agent" we don't get such matches, I assume because the definitions are line by line instead of separated by commas?

Well, no it's more because of the way they check for matches. I look for it in any part of the host name or user agent. They match the exact item.

I've found that doing it the way I do gives better protection overall. Mainly because if you decide you don't want any servers registering you just have to enter 'server'. That kills a good number of bots right off the bat. Another example would be rackcentre. Anything with that in the host name is a server. Listing each server from rackcentre would be a list 10 miles long. So with the way I do it, just entering it once kills them all.

ozzy47 03-30-2014 11:11 AM

Let me ask you this, can it be made to have each one on it's own line without a performance issue? It would be much easier to maintain the list that way.

nhawk 03-30-2014 12:00 PM

Quote:

Originally Posted by ozzy47 (Post 2490430)
Let me ask you this, can it be made to have each one on it's own line without a performance issue? It would be much easier to maintain the list that way.

It could be done. But to keep it simple, I would also have to retain the csv format to account for old installations.

I'll put it on the wish list for the mod.

ozzy47 03-30-2014 12:12 PM

Cool, I would really like to see that. ;)

Alan_SP 03-30-2014 05:01 PM

Quote:

Originally Posted by Max Taxable (Post 2490301)
With "Ban Spiders by User Agent" we don't get such matches, I assume because the definitions are line by line instead of separated by commas?

Actually, we do.

I had problem with banning string MSIE 1, with which I tried to block old MSIE 1 users. But, today there are MSIE 10 and MSIE 11, both browsers also were blocked, as they contain "MSIE 1" in their UA. As I remember, to block only MSIE 1 we should use this string: MSIE 1. (dot at the end), as it is identified with MSIE 1.0.

I wrote about it Ban Spiders thread.

We need to be very careful what string we block, unless we get blocking innocent users.

ozzy47 03-30-2014 05:34 PM

Yeah it is best to be cautious when adding things to these types of mods. :)

Max Taxable 03-30-2014 08:11 PM

Quote:

Originally Posted by Alan_SP (Post 2490474)
Actually, we do.

I had problem with banning string MSIE 1, with which I tried to block old MSIE 1 users. But, today there are MSIE 10 and MSIE 11, both browsers also were blocked, as they contain "MSIE 1" in their UA. As I remember, to block only MSIE 1 we should use this string: MSIE 1. (dot at the end), as it is identified with MSIE 1.0.

I wrote about it Ban Spiders thread.

We need to be very careful what string we block, unless we get blocking innocent users.

Right, I remember that well. I merely stopped worrying about IE 1 since the likelihood of any device using that, still surviving seems very low.

CaptainAwesome 05-26-2014 08:18 AM

So how do i collect hostnames and useragents to ban? I saw post 29 but being a newbie it means nothing to me.

Lets start with an example. I just had a spammer try to register. Their IP is 137.175.68.84 and looking at stopforumspam confirms there is a lot of spamming going on from this IP.

What would be my next step (in newbie talk)? When i tried to do a hostname search using whatismyip.com, it just threw up the IP address i just posted.

nhawk 05-26-2014 10:04 AM

If you don't understand what's in post 29, it really can't be explained in any simpler terms.

Look up the IP at ARIN as described in post 29.

In the case of that IP, you would want to ban 199-180-100-0-1

CaptainAwesome 05-26-2014 10:23 AM

Got it

fxdigi-cash 08-03-2014 09:28 PM

This great mod should be a built-in vb as a security and protection tool ...

princesspepper 12-07-2014 09:55 AM

Installed on VB4.2.2 PL2

ozzy47 12-07-2014 10:01 AM

You will find this is a invaluable tool on your site. :)

adwade 12-11-2014 06:36 PM

Quick question: If netzip is entered as a useragent to be blocked, will that also block NetZIP and NetZip?(i.e. Are the useragent names case sensitive in order to work for all occurrences?)

Also, what about Mata Hari vs. Mata.Hari ? If only Mata Hari is entered as the useragent, will that catch Mata.Hari as well?

nhawk 12-11-2014 07:44 PM

Quote:

Originally Posted by adwade (Post 2526798)
Quick question: If netzip is entered as a useragent to be blocked, will that also block NetZIP and NetZip?(i.e. Are the useragent names case sensitive in order to work for all occurrences?)

Also, what about Mata Hari vs. Mata.Hari ? If only Mata Hari is entered as the useragent, will that catch Mata.Hari as well?

Useragents are not case sensitive.

Mata Hari will only catch Mata Hari, not Mata.Hari.

markoroots 01-29-2015 07:32 PM

Quote:

Originally Posted by nhawk (Post 2305118)
All you had to do was put something to ban in both the Useragent field and the Hostname field.

The error was because one of those fields was blank.

I'll see about a fix for that soon.

EDIT: Fix released today (version 1.0.2)

Hi guys,
too me I have the same problem? What I can do to fix it.
I have installed the 3.0.1 version of the mod.

nhawk 01-29-2015 07:50 PM

Quote:

Originally Posted by markoroots (Post 2535199)
Hi guys,
too me I have the same problem? What I can do to fix it.
I have installed the 3.0.1 version of the mod.

You should not be having the same problem with version 1.0.3.

But try putting something in both the Useragent field and the Hostname field to see if your problem stops.

markoroots 01-29-2015 08:27 PM

Hi Nhawk and thanks for your reply.
In the Hostname box is just full of host names.
The Useragent box is empy. What I can add?
Have you a list of useragents please?

nhawk 01-29-2015 08:34 PM

Quote:

Originally Posted by markoroots (Post 2535204)
Hi Nhawk and thanks for your reply.
In the Hostname box is just full of host names.
The Useragent box is empy. What I can add?
Have you a list of useragents please?

Just add the word proxy

markoroots 01-29-2015 09:10 PM

Inside the Mod?
Is a new release?

nhawk 01-29-2015 09:21 PM

Quote:

Originally Posted by markoroots (Post 2535214)
Inside the Mod?
Is a new release?

I don't understand what you're asking now.

You asked what to add to the Useragent box and I answered that.

markoroots 01-29-2015 11:06 PM

Ahhh sorry...
I thought you have added something in the mod. sorry... :)

I go to try.


All times are GMT. The time now is 01:01 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.01469 seconds
  • Memory Usage 1,838KB
  • 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
  • (1)bbcode_code_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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