HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


"Banned IP" list

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#77187 (In Topic #15886)
Avatar

Community saint

I have some custom blocklists which have been added to the top of the .htaccess file along with a custom 403 rule that executes with the L parameter. Is it safe to move the banned IP list to the top of .htaccess after my custom lists and before the other rules? I'm guessing that the program looks for the "# deny from xxx.xx.x.x (leave this comment here!)" line to identify the IP ban list. Will this still work?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#77188
Avatar

Community saint

Although I haven't played with banning IP, I can't see any reason it wouldn't work when moved to top.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#77189
Avatar

Community saint

That's what I am hoping for.

For now, we have just commented out the <order allow, deny> on the ban list and left it in place with the allow all at the end. I think the plan is ideally to move the ban list right under the other blocklists at the beginning of the file and surround them with <Files> to nicely contain them. I think they will then also go to my custom 403 error page although they may already be doing that.

Now I just need to deal with an overzealous Baiduspider from some addresses that seem to have total disregard for robots.txt. I've found some info on banning this spider in .htaccess.

Bob
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: