vb.org Archive

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

shawn_RS 04-19-2009 09:12 AM

Maybe we can stick to the topic?

I still need to know how to do this.

snakes1100 04-19-2009 11:28 AM

1. Create a .htaccess file in the desired folder of your choice, ie.. "admincp"

2. Edit the file & add the following, correcting the IP's that you want to have access to that folder.

order deny,allow
deny from all
allow from xx.xx.xx.xx

Replace the xx's with the IP's you want having access, new allow line per IP.

Resave to server

shawn_RS 04-20-2009 11:28 PM

Quote:

Originally Posted by snakes1100 (Post 1794388)
1. Create a .htaccess file in the desired folder of your choice, ie.. "admincp"

2. Edit the file & add the following, correcting the IP's that you want to have access to that folder.

order deny,allow
deny from all
allow from xx.xx.xx.xx

Replace the xx's with the IP's you want having access, new allow line per IP.

Resave to server


This did not work. I tried using a web proxy site, and I could still enter the admincp.

vbplusme 04-21-2009 06:07 AM

Because you need a "static" IP address to make that .htaccess code work. Very few "average" users these days have this as most hosting connections are dynamic DHCP type connects and not static. OR as you found out Proxy servers easily break the rule. Custom cookies or session or maybe a secure connections may be what you have to do to secure your access?

shawn_RS 04-21-2009 09:32 AM

Quote:

Originally Posted by vbplusme (Post 1795748)
Because you need a "static" IP address to make that .htaccess code work. Very few "average" users these days have this as most hosting connections are dynamic DHCP type connects and not static. OR as you found out Proxy servers easily break the rule. Custom cookies or session or maybe a secure connections may be what you have to do to secure your access?

I'm not sure, but is their another way to block access from all but certain IP's?

Michael.A 04-21-2009 11:14 AM

here try this !!
Code:

RewriteEngine on
order deny,allow
allow from xx.xx.xxx.xxx
deny from all

and if it worked add this to have them go back to ur forum or what ever ,

Code:

RewriteEngine on
order deny,allow
allow from xx.xx.xxx.xxx
deny from all
ErrorDocument 403 http://www.somepage.com



All times are GMT. The time now is 11:49 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.01613 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete