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-18-2009 02:19 PM

IP Lock?
 
Is it possible to lock certain parts of the site to a certain IP?

Like the Admincp folder/section of the site could be locked to only allow access from the following IP's?

G0F0RBR0KE 04-18-2009 02:38 PM

It's possible, but why not set up a .htpassword instead? And only give it to the users that you wish to access the admin folder.

shawn_RS 04-18-2009 07:14 PM

I have that, but passwords can be leaked. IP's not so much.

BlueNinjaGo 04-18-2009 07:45 PM

Um... correct me if I'm wrong, but can't you change your IP address to whatever you want? I have a friend that works for a cable company and I'm pretty sure he can.

R1lover 04-18-2009 08:33 PM

Quote:

Originally Posted by BlueNinjaGo (Post 1794108)
Um... correct me if I'm wrong, but can't you change your IP address to whatever you want? I have a friend that works for a cable company and I'm pretty sure he can.

The short answer is no you can't....

Michael.A 04-18-2009 10:17 PM

ok i don't want to say this but i well i made a php file that get all ur forum user hashes but i don't think vbulletin.org like me to post it on there site, is no good buc the thing i make for vb is illegal and i want to be a coder so bad on here but i dont think i well ever be ,:confused:

R1lover 04-18-2009 10:21 PM

What are you trying to say?

Michael.A 04-18-2009 10:23 PM

well if u have a ftp access to any forum u can get all ur user password !!

R1lover 04-18-2009 11:00 PM

If you have ftp access then you can also take down the whole site... so I guess that's pretty much useless no?

Michael.A 04-18-2009 11:33 PM

why take it down if u can have it,

shawn_RS 04-19-2009 10:12 AM

Maybe we can stick to the topic?

I still need to know how to do this.

snakes1100 04-19-2009 12:28 PM

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-21-2009 12:28 AM

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 07: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 10: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 12:14 PM

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 07:03 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.02616 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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