vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - IPDeny: Country Block List (https://vborg.vbsupport.ru/showthread.php?t=292742)

djbaxter 12-07-2012 02:43 PM

How often do you plan to update this list of IP addresses? Because you ARE going to need to do this - often.

Here's a better solution: https://vborg.vbsupport.ru/showthread.php?t=205044

Hostboard 12-07-2012 04:01 PM

Quote:

Originally Posted by djbaxter (Post 2389102)
How often do you plan to update this list of IP addresses? Because you ARE going to need to do this - often.

Here's a better solution: https://vborg.vbsupport.ru/showthread.php?t=205044

I checked unsupported for a reason... I may update it as my time permits...

Just another solution, whether it is better is up to each individual. Mine is usable across ANY website on ANY platform and is NOT dependent on anything other then the ability to use a .htaccess file.

doctorsexy 12-08-2012 07:20 AM

Smashin....:up:

firstimecaller 01-21-2013 07:56 AM

will try this out.

anybody else find the avatars in the first two posts kinda hilarious / ironic? :)

Jesus... looking right, green death looking left... lulz

edit:
Just a tip: If generating a .htaccess deny block is the goal, perhaps it might be easier to use this tool: http://ipinfodb.com/ip_country_block_htaccess.php

If, like me, you need to block just about everybody BUT Europe and the Americas, it's easier than editing and removing a bunch of ampersands, even if you use find/replace in selections in your favorite text editor, since you'll be doing quite a bit of selecting, paging down, etc.

Plus you'll end up with a much smaller file to parse. I don't know what the overhead is for a bunch of comments in a .htaccess file. Another tip would be to put this into your Apache config file if possible to avoid it being loaded/parsed with each and every server request. I know not everyone has access to this on shared server accounts.

Hostboard 01-21-2013 11:52 AM

Quote:

Originally Posted by firstimecaller (Post 2398350)
will try this out.

anybody else find the avatars in the first two posts kinda hilarious / ironic? :)

Jesus... looking right, green death looking left... lulz

edit:
Just a tip: If generating a .htaccess deny block is the goal, perhaps it might be easier to use this tool: http://ipinfodb.com/ip_country_block_htaccess.php

If, like me, you need to block just about everybody BUT Europe and the Americas, it's easier than editing and removing a bunch of ampersands, even if you use find/replace in selections in your favorite text editor, since you'll be doing quite a bit of selecting, paging down, etc.

Plus you'll end up with a much smaller file to parse. I don't know what the overhead is for a bunch of comments in a .htaccess file. Another tip would be to put this into your Apache config file if possible to avoid it being loaded/parsed with each and every server request. I know not everyone has access to this on shared server accounts.

That is funny...
Again this is a stand alone .htaccess file. The site you point to utilizes access to their server(s)
  • If his servers go down, this part of the modification will not work.
  • If he decides to close shop this part of the modification will not work.
  • If he decides not to offer the service, this part of the modification will not work.
  • For those on limited bandwidth, it is using their quota up (even minimally)
  • Potential slowdowns with retrieving the information, whether it be many connections to his server or a few too many hops between you and them, or even 1 hop experiencing high latency.
Yes you could put this into your Apache config file and it is wiser to do such but like you said no everyone has that level of access.



I use EditPad Pro as it easily adds or removes prefixes to lines.

firstimecaller 01-21-2013 12:21 PM

my link simply points to a script which generates the deny block for an .htaccess file. You generate your .htaccess and copy and paste it into your .htaccess appropriately.

there is no linking to another server, or reliance upon anyone else. it is in YOUR .htaccess. It's just a tool to generate the info that you are providing. I found it simpler in my case, so I was just sharing it in case it helped anyone else.

Thanks again for the idea for this, cheers!

AdjusterGuru 02-01-2014 09:40 PM

Hostboard, your htaccess file is massive. Will is work on vb 5.0.5?

Would that code be copy pasted in the .htaccess file in the root folder of VB5.0.5 below the following last default entry: </IfModule> ?

Will an htaccess that large slow down the website for users?

K4GAP 02-02-2014 04:38 AM

Quote:

Originally Posted by djbaxter (Post 2389102)
How often do you plan to update this list of IP addresses? Because you ARE going to need to do this - often.

Here's a better solution: https://vborg.vbsupport.ru/showthread.php?t=205044

That "better solution" is for vb 3.8.

Hostboard 02-02-2014 08:18 PM

Quote:

Originally Posted by AdjusterGuru (Post 2478471)
Hostboard, your htaccess file is massive. Will is work on vb 5.0.5?

Would that code be copy pasted in the .htaccess file in the root folder of VB5.0.5 below the following last default entry: </IfModule> ?

Will an htaccess that large slow down the website for users?

.htaccess is a Linux thing, so as long as you are running some flavor of Linux, it is usable. As for the size vs slow down, there are too many variables to answer this. Best is to try and see what happens

AdjusterGuru 02-03-2014 06:57 PM

Thanks Hostboard, I will experiment with that once I go live with the forum. I am on a linux server. How often would it be suggested to update that list?

Question, it looks like the list is a list of ip addresses within each country to block.

Is there a way to block the entire country? Or is there a way to only allow USA visitors in the htaccess file?

FYI, theWordPress plugin "IQ-Block-Country" uses a GeoIP.dat file. I am wondering if that is a list of IP addresses like in your file, but I was unable to open it with MS Office, Visual Studio, DreamWeaver and other programs. Do you know of any free programs to view a .dat file with? (I was unable to upload it with this post).

Thanks again so much!


All times are GMT. The time now is 02:42 PM.

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.01632 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete