Quick Nav:  Online Store   |   Login | Register

Need Some Examples

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
jerops
<100 Posts
Posts:50


03/30/2008 9:59 PM  

Hi,

I just purchased pageblaster and very new to this.  I can already see a speed difference using this.  Very nice.  My question is,  I'm not quite sure how to set up some IP Blocking rules and some User -Agent blocking rules.  Yahoo slurp is regulary taking down my site.  Could someone please provide some examples on how I should go about writing some rules for IP blocking and User-Agent blocking?  Any help I can get is very much appreciated.

Thanks

Jerry

John Mitchell
Posts:2779


03/31/2008 11:28 AM  

Hi Jerry,
You don't need a rule to block by IP Address or User-Agent. All you need to do is put the IP Address or user agent into those fileds in the config file.

blocked-useragents="Slurp"
blocked-ipaddresses="74.6.30.182"

If you have more than one they should be separated by Semi-colons.
You can also use Regular expressions in those fields.

I wouldn't recommend blocking Slurp though, unless you really don't want your site to be listed in Yahoo's Search index. It may be better to create some entries in your Robots.txt file to keep Yahoo from indexing pages that are causing errors.

jerops
<100 Posts
Posts:50


03/31/2008 11:34 AM  
Thanks for getting back to me....so do I put those lines anywhere, like right under the compression level line?
jerops
<100 Posts
Posts:50


03/31/2008 11:52 AM  

Hi,

I'm sorry, I see it now...I should look more closely  at the file....Last question regarding blocked IP's....with the current version, would I need to create a rule to redirect a blocked IP and if so how I would write that?

Thanks again for helping out a new guy!

Jerry

John Mitchell
Posts:2779


03/31/2008 11:53 AM  

Yes, you can put them in the pageBlaster node of the global config file:

< pageBlaster
        page-param="tabid"
        cache-folder="/DesktopModules/Snapsis/PageBlaster/Cache"
        config-folder="/DesktopModules/Snapsis/PageBlaster/Config"  
        ext-cachekey-parameters="True"     
        cached-roles="" 
        cached-users=""
        cached-languages=""
        blocked-useragents="Slurp"
        blocked-ipaddresses="74.6.30.182"       

        memory-cache-interval="01:00:00:00"
        memory-size-limit="25"
        disk-cache-interval="04:00:00:00"
        disk-size-limit="100"
        compression-algorithm="gzip"
        compression-level="high">

John Mitchell
Posts:2779


03/31/2008 12:01 PM  

Blocking is different than Redirecting.  When you block a request it sends back a 403 response which tells the browser that it was denied.

If you want to redirect, then you can create a rule to do that, but I don't understand how you would want to re-direct a spider. Where would you want to redirect it to?

Here is a thread that explains how to do a 301 redirect using PageBlaster 3.x+

 

 

jerops
<100 Posts
Posts:50


03/31/2008 12:07 PM  
Thanks for the link...And I don't want to redirect a spider, I want to redirect a blocked IP. For example, I work for a school system and sometimes we have a few students that try to 'attack' the server with whatever script they found, so I would like to redirect their IP to something like fbi.gov or something or maybe to a custom page or honeypot where it's just a blank page with a message. It hasn't been decided yet.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software