Re: Browser blocking

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44847
interpreted = N
texte = >This browser compatibility discussion got me thinking: > >There actually is about 1.5 % of my visitors I wouldn't mind loosing. >Does anybody have a handy, simple and failsafe way to block access for >all offline browsers? > >I suppose something like this should work: > >[SHOWIF [LOOKUP >db=browserlist.db&lookInField=NAME&value=[BROWSERNAME]&returnField=OFFLINE¬Found=]=True] >[REDIRECT {some goofy page}] >[/SHOWIF] > >I wouldn't call that simple, though. Among other things it'd mean >maintaining a database of all browsers. > > >Frank Nordberg >http://www.musicaviva.comHi Frank,Using a db is a little extreme in this case, because of all the various versions of offline browsers that you would need exact matches for.We were content to just use a handful of showifs (although this would be more elegant using [if] in webcat4):[MATH SHOW=F]COUNT=0[/MATH] [SHOWIF [URL][BROWSERNAME][/URL]^[URL]teleport pro[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]Web Whacker[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]CherryPicker[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]SiteSnagger[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]ExtractorPro[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]Digicomb[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]WebReaper[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]DWTE[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]Dllbot[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]DaviesBot[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [URL][BROWSERNAME][/URL]^[URL]Wget[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [COUNT]>0] [REDIRECT http://127.0.0.1/] [/SHOWIF]Put this in a global include file (like your navigation.inc) and forget about being whacked. If you prefer the apache way, you can add something like this to your httpd.conf (if you're using apache, that is...):SetEnvIf User-Agent ^WebWhacker block_me Order Allow,Deny Allow from all Deny from env=block_me Of course, neither of these solutions will save you from the new breed of web whackers that let you set your browsername to anything you want. To catch these, err, people, you'll need something more sophisticated like a apache's mod_throttle or a log scraping script that detects excessive requests and dynamically adds them to a blocked list...Good luck.-Dale------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Browser blocking (Dale LaFountain 2002)
  2. Browser blocking (Frank Nordberg 2002)
>This browser compatibility discussion got me thinking: > >There actually is about 1.5 % of my visitors I wouldn't mind loosing. >Does anybody have a handy, simple and failsafe way to block access for >all offline browsers? > >I suppose something like this should work: > >[SHOWIF [LOOKUP >db=browserlist.db&lookInField=NAME&value=[browsername]&returnField=OFFLINE¬Found=]=True] >[REDIRECT {some goofy page}] >[/SHOWIF] > >I wouldn't call that simple, though. Among other things it'd mean >maintaining a database of all browsers. > > >Frank Nordberg >http://www.musicaviva.comHi Frank,Using a db is a little extreme in this case, because of all the various versions of offline browsers that you would need exact matches for.We were content to just use a handful of showifs (although this would be more elegant using [if] in webcat4):[MATH SHOW=F]COUNT=0[/MATH] [SHOWIF [url][browsername][/URL]^[url]teleport pro[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]Web Whacker[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]CherryPicker[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]SiteSnagger[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]ExtractorPro[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]Digicomb[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]WebReaper[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]DWTE[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]Dllbot[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]DaviesBot[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [url][browsername][/URL]^[url]Wget[/URL]][MATH SHOW=F]COUNT=1[/MATH] [/SHOWIF][SHOWIF [COUNT]>0] [REDIRECT http://127.0.0.1/] [/SHOWIF]Put this in a global include file (like your navigation.inc) and forget about being whacked. If you prefer the apache way, you can add something like this to your httpd.conf (if you're using apache, that is...):SetEnvIf User-Agent ^WebWhacker block_me Order Allow,Deny Allow from all Deny from env=block_me Of course, neither of these solutions will save you from the new breed of web whackers that let you set your browsername to anything you want. To catch these, err, people, you'll need something more sophisticated like a apache's mod_throttle or a log scraping script that detects excessive requests and dynamically adds them to a blocked list...Good luck.-Dale------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Dale LaFountain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] a major shift in strategy? (2008) [OT] Mac OSX and SSH Telnet (2000) Shared conversion under WebTen (1998) Separate SSL Server (1997) Summing fields (1997) pipe delimited crconvert database (2002) [isfile] ? (1997) Emailer error (1998) [WebDNA] V7 Download (2011) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) read and write you own cookies with webcat (1997) Truncated value after space - refresh my memory.... (1997) Re:no [search] with NT (1997) emailer error -108 (1997) [WebDNA] Middle Question (2015) Showing unopened cart (1997) Review comparison by PC Magazine: Open for On-line Business (1997) Add a field to the error log? (1997) Altavista causes a problem? (1998) Hummm .... (2002)