vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   .htaccess question (https://vborg.vbsupport.ru/showthread.php?t=256928)

RichieBoy67 01-11-2011 12:38 AM

.htaccess question
 
Hey all,

I have been working on blocking countries using htaccess when a thought occurred to me for once. lol Instead of blocking a ton of countries why now just allow the countries I want and block everything else..

Before I spend the time figuring out IP ranges etc I figured I would ask here and see if anyone already has written an htaccess like this? The site I am working on just wants English speaking countries..mainly US,UK and Canada..the rest can be blocked.. Can anyone help me with this??

Thanks much,
Richie

TheLastSuperman 01-11-2011 12:59 AM

I can post some links and warn you that very large .htaccess files can cause issues just not good to have imo.

http://www.webdeveloper.com/forum/sh...d.php?t=133633
http://www.wizcrafts.net/nigerian-blocklist.html

Basically your looking at some editing on the htaccess end and I've honestly never thought to do anything this extreme as for me anyone visiting could be a potential client etc so I can't speak from experience perhaps leave time for someone else to chime in and possibly help with this or use those links and Google to find something you can use ;).

RichieBoy67 01-11-2011 01:34 AM

I agree but this is for a client..

Thank you for the links. I have already written a few different htaccess files but I have been trying to range the IPs to make it shorter..

I figure allowing US,Canada and UK would be a much smaller Htaccess than if I banned all the other countries and just allowed us etc.. The problem is I cannot find ranges..

Thanks again..
Update--Those links were very helpful and I believe the data I need is in the first link..Thanks for your help Superman.. Its a bird, a plane... no...its a web developer..lol

TheLastSuperman 01-11-2011 02:05 AM

LOL well your right, allowing some yet blocking the rest is a better route from what I read but remember, it's your job in a sense to make sure your client knows all the risks kwim? ;).

RichieBoy67 01-11-2011 02:11 AM

Yes, so true..I have decided to just block the most problematic countries and then just ban any other countries that cause problems.. Apparently this site has been a target for years.. It has not been successfully attacked though since my improvements weeks ago so perhaps all of this is overkill..

Thanks again for your help..

Rich

TheLastSuperman 01-11-2011 02:27 AM

No problem, glad the links were helpful ;)

TheLastSuperman 01-13-2011 07:22 PM

Ohhh Richie...

Look what was released on Jan. 11th, we missed it by one day and I just now came across it ;).

https://vborg.vbsupport.ru/showthread.php?p=2148617

Also take a look at post #14 ;).

RichieBoy67 01-13-2011 09:51 PM

Awesome...

Thanks!!


All times are GMT. The time now is 02:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00968 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete