Gossamer Forum
Quote Reply
User Bans
To quote from the Admin->Setup->Misc Options

Quote:


Banned Hosts. Enter a comma separated lists of hosts/ip addresses to ban. The template 'banned.html' will be displayed if a person is banned.






I wish to try this out. Do I enter sites inlcuding http:// or just www.thesite.com.br ? Are wild cards accepted i.e. *.com.br ?

Could someone let me try blocking them to test this? Or is there a SAFE way I can test this? My server is remote.

Edit: As I cannot find a banned.html with any of the included template sets, I am assuming I make this one up and save it to my current template directory. Am I right?

I notice there is a GENERAL_BANNED in the user language templates under General. How does this fit into banned.html?

Thanks.


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: May 30, 2002, 6:33 PM
Quote Reply
Re: [Ian] User Bans In reply to
>>
I wish to try this out. Do I enter sites inlcuding http:// or just www.thesite.com.br ? Are wild cards accepted i.e. *.com.br ?
<<

Host names are host names not website addressess. Theres no http:// Smile

It's something like:

manc-broadband.ntl.com or 213.106.15.150
Quote Reply
Re: [Paul] User Bans In reply to
Thanks Paul,

I found this is Links.pm, so I guess that you can use wildcards

for (@{$CFG->{bans}}) {

# Turn a ban into a regexp

my $ban = quotemeta($_);

# *'s match anything

$ban =~ s/\\\*/.*/g;

# +'s match anything with at least one character

$ban =~ s/\\\+/.+/g;

# ?'s match any single character

$ban =~ s/\\\?/./g;



http://www.iuni.com/...tware/web/index.html
Links Plugins
Quote Reply
Re: [Ian] User Bans In reply to
Could someone clairfy this for me? (I am having an issue with a spammer!)

Will *.com.br work for example?

Perhaps someone could show me how I could SAFELY block about 6 countries all ending in dot then two letters.

Fictional example: Block *.ne but not *.net, where .ne is the last dot name in the whole description.

Also, can you block anonymous surfers using sites like megaproxy? I tried *.megaproxy.com and www.megaproxy.com , both did not work. But when I try one of their IP address, this seem to work.

When a user is blocked, they are displayed the banned message from the language.txt file and not the banned.html... how can I get banned.html to come up instead?


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: Jun 1, 2002, 3:03 PM
Quote Reply
Re: [Ian] User Bans In reply to
I don't have a banned.html. What template set are you using?

Sean
Quote Reply
Re: [SeanP] User Bans In reply to
Interesting Pic SeanTongue

It seems none of the template sets do, at least I did not get one. I just made it up! If you look in your Setup near the ban bit, you will see a reference to this file!?!?Crazy I can't get links to load it because when I checked the associated module, it only seems to refer to language.txt when checking for banned users.

Maybe someone from GT could shed some light on the "banned.html"?


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: Jun 1, 2002, 8:59 PM