Page Index Toggle Pages: 1 ... 6 7 [8] 9 10 
Topic Tools
Very Hot Topic (More than 25 Replies) Verbose: No such file or directory (Read 15,957 times)
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Verbose: No such file or directory
Reply #105 - Jul 6th, 2013 at 12:09pm
Post Tools
Looks good so far - no repeat entries in .htaccess.

I wonder if its like the help files where I had to re-save in order for the files to show up?
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,434
Location: Earth

YaBB 2.6.1
Re: Verbose: No such file or directory
Reply #106 - Jul 6th, 2013 at 3:11pm
Post Tools
That's a possibility if you were using your old .htaccess file or old ban_log files on the new install. Guardian wouldn't know what was already there and so just added to it - but those old blocked IPs should still have been blocked.

(Which reminds me - I still have some work to do on Guardian/Ban/Error log integration for 2.5.4  Shocked )
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Verbose: No such file or directory
Reply #107 - Jul 6th, 2013 at 4:26pm
Post Tools
Dandello wrote on Jul 6th, 2013 at 3:11pm:
That's a possibility if you were using your old .htaccess file or old ban_log files on the new install.

That's exactly what I did when the old forum crashed. I was trying to get it back up as quickly as possible.

Dandello wrote on Jul 6th, 2013 at 3:11pm:
Which reminds me - I still have some work to do on Guardian/Ban/Error log integration for 2.5.4

I wish I could help but I'm not that great at coding.

I noticed a few things that I'm curious about.

I see IPs listed in the Ban Members page and the Guardian page. Do both read/write to the same file?

From what it looks like the Ban_Members writes to Settings.pl and the Guardian writes to .htaccess. Why the duplication?

Also, there isn't a way to access the Variables/ban_log.txt from the admin center (to be honest I'm not really sure of its value since its not there). It might be nice to have it in there to edit or clear if that does disrupt something I'm not aware of. (it looks like Ban_Members and Errors page might read this file)
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,434
Location: Earth

YaBB 2.6.1
Re: Verbose: No such file or directory
Reply #108 - Jul 6th, 2013 at 7:38pm
Post Tools
BanMembers and Guardian have slightly different functions (well, more than slightly, actually). Guardian (when activated) will write to the .htaccess file and its own log in Settings.pl and generally catches IP addresses where bad things came from (like bogus stuff in query strings). BanMembers writes to one of 3 different lists in Settings.pl, depending on how that member was banned by the admin (user name, email address or IP.). Guardian is pretty much automatic (although the admin can add and remove things from Guardian's lists). BanMember isn't automatic at all. Guardian keeps the offending IPs from accessing the site on the server level. BanMember keeps the offending member/IP from being anything but a Guest, but they still can be a Guest.

The integration I need to go over is for 2.5.4 where we're giving the admin the ability to ban IPs and add them the Guardian list from the error log page. The admin will also be able to see the ban_log from that page and add offending IP addresses to Guardian from there as well. But we don't want the admin to inadvertently add the same IP to the Guardian list multiple times.
« Last Edit: Jul 6th, 2013 at 7:40pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Verbose: No such file or directory
Reply #109 - Jul 6th, 2013 at 9:43pm
Post Tools
Dandello wrote on Jul 6th, 2013 at 7:38pm:
The integration I need to go over is for 2.5.4 where we're giving the admin the ability to ban IPs and add them the Guardian list from the error log page. The admin will also be able to see the ban_log from that page and add offending IP addresses to Guardian from there as well. But we don't want the admin to inadvertently add the same IP to the Guardian list multiple times.

Excellent!

Dandello wrote on Jul 6th, 2013 at 7:38pm:
BanMember isn't automatic at all.

I noticed IPs are automatically being added in BanMembers. I'm guess its coming from the Email and Username banning.
  
Back to top
 
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Verbose: No such file or directory
Reply #110 - Jul 7th, 2013 at 12:12am
Post Tools
9.227.168.pre

would it cause a problem if  I added "." as an invalid character?
  
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,591
Location: UK:Scotland/livingston

None
Re: Verbose: No such file or directory
Reply #111 - Jul 7th, 2013 at 12:58am
Post Tools
------ wrote on Jul 7th, 2013 at 12:12am:
9.227.168.pre

would it cause a problem if  I added "." as an invalid character?

I think it may as it is used as a ip divider but Dandello will know more about it.
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,709
Location: Los Angeles

YaBB 2.4
Re: Verbose: No such file or directory
Reply #112 - Jul 7th, 2013 at 1:03am
Post Tools
------ wrote on Jul 7th, 2013 at 12:12am:
9.227.168.pre

Dandello solved the spam-bot registration attempts with just numbers here, and I can happily confirm that it works.

  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,434
Location: Earth

YaBB 2.6.1
Re: Verbose: No such file or directory
Reply #113 - Jul 7th, 2013 at 5:17am
Post Tools
I don't think adding a period as an invalid character in a user name would hurt at all.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Verbose: No such file or directory
Reply #114 - Jul 7th, 2013 at 11:34pm
Post Tools
Thanks Dandello.

Since I require members use only their full name on my forum it makes sense to only allow only upper and lower case letters while registering. I'm also thinking this might be another way to thwart spammers.

I tired to edit the code today and was only successful in crashing my test forum.

I beleive I need to change section
Code (Perl)
Select All
	&fatal_error("invalid_character","$register_txt{'35'} $register_txt{'241re'}") if $member{'regusername'} =~ /[^\w\+\-\.\@]/;
    if ( $member{'regusername'} =~ /^[0-9]+$/sm ) {
        fatal_error( 'all_numbers',
            "$register_txt{'35'} $register_txt{'241n'}" );
    }
 



Do I just add
Code (Perl)
Select All
\#\$\%\^\&\* 



and so on after the highlighted code in the first box?
  
Back to top
 
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,434
Location: Earth

YaBB 2.6.1
Re: Verbose: No such file or directory
Reply #115 - Jul 8th, 2013 at 12:41am
Post Tools
To get really restrictive (and to do what you're thinking) replace the
Code
Select All
/[^\w\+\-\.\@]/ 

with
Code
Select All
m/[^a-zA-Z0-9_\ ]/sm 


That should allow only letters, numbers, underscores and spaces to be used in user name.

Edited:
Typos - some days my brain just doesn't wake up when the rest of me does. To just remove the period from allowed characters replace the first code with
Code
Select All
/[^\w\+\-\@]/ 

« Last Edit: Jul 8th, 2013 at 3:30pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Verbose: No such file or directory
Reply #116 - Jul 8th, 2013 at 3:30pm
Post Tools
Thanks again

I changed it so only text and the underscore is allowed

Code
Select All
m/[^a-zA-Z_]/gsm  

  
Back to top
 
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Verbose: No such file or directory
Reply #117 - Jul 8th, 2013 at 3:39pm
Post Tools
Dandello wrote on Jul 8th, 2013 at 12:41am:
Typos - some days my brain just doesn't wake up when the rest of me does. To just remove the period from allowed characters replace the first code with


LOL I have days like that to.

Will my change work?  If so and I get a .pre error with numbers I know the problem is my server

Edited:
Picked off better then a dozen spammers so far trying to use characters other then letters Smiley
« Last Edit: Jul 8th, 2013 at 7:41pm by ------ »  
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,591
Location: UK:Scotland/livingston

None
Re: Verbose: No such file or directory
Reply #118 - Jul 8th, 2013 at 7:48pm
Post Tools
------ wrote on Jul 8th, 2013 at 3:39pm:
Edited: Picked off better then a dozen spammers so far trying to use characters other then letters

That's what we like to see a happy admin  Smiley  Smiley
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,709
Location: Los Angeles

YaBB 2.4
Re: Verbose: No such file or directory
Reply #119 - Jul 8th, 2013 at 10:26pm
Post Tools
xnoddyx wrote on Jul 8th, 2013 at 7:48pm:
That's what we like to see a happy admin  Smiley  Smiley

You and Dandello are amazing! It's reassuring that both of you know YaBB so well.  Cool

Dandello figured this out right from the start ... back on June 9th. Snap! Smiley

  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Page Index Toggle Pages: 1 ... 6 7 [8] 9 10 
Topic Tools
 
  « Board Index ‹ Board  ^Top