vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ip block (https://vborg.vbsupport.ru/showthread.php?t=201580)

Michael.A 01-13-2009 02:52 AM

ip block
 
is there a mode or a way to block ip's from ''seeing'' the site and like redirect all the blocked ip's to other url..?? thax for the help

Bellardia 01-13-2009 02:59 AM

You can use the .htaccess file

deny from 123.45.6.7
deny from 192.168.

Ending with an ' . ' early serves as a wildcard for the rest of the digits.

Michael.A 01-13-2009 03:03 AM

is there a code i need to add on there?
like for example if i want to banned 67.224.146.186 / 75.118.205.121 how do i add it to the .htaccess file

Bellardia 01-13-2009 03:06 AM

Code:

order allow,deny
deny from 67.224.146.186
deny from 75.118.205.121
allow from all

Each one its own line inside the .htaccess file, not else, nothing more!

Michael.A 01-13-2009 03:27 AM

Quote:

Originally Posted by Bellardia (Post 1710506)
Code:

order allow,deny
deny from 67.224.146.186
deny from 75.118.205.121
allow from all

Each one its own line inside the .htaccess file, not else, nothing more!

thank you that work's what about redirect all the deny ip's to another url ????

Bellardia 01-13-2009 03:45 AM

Add
Code:

ErrorDocument 403 http://www.somepage.com
Note: This is the simple solution, 403 error is forbidden, so if for some reason access to your forum is blocked off to non-authenticated users everyone who isn't authenticated will be redirected. Keep that in mind when deciding which page to link to, just in case ;)


All times are GMT. The time now is 03:01 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.01605 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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