Go Back   Cloud Computing > General Discussion > General Discussion Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-12-09, 07:43
BOD Member
 
Join Date: May 2009
Posts: 50
Default Anonymous User?

Is there a way to block anonymous users from accessing the site? I mean, how do block someone who is anonymous if they are using a different or hidden IP?
Reply With Quote
  #2 (permalink)  
Old 06-12-09, 14:18
BodShane's Avatar
Chief Operating Officer
 
Join Date: Dec 2006
Posts: 1,088
Send a message via AIM to BodShane Send a message via MSN to BodShane
Default

Unfortunately, there is no such way you can block anonymous users from visiting your site. However, you can also setup Password protect directories which will only allow users with credentials to proceed further.

Regards,

Shane Phillips
__________________
Redundant Dedicated Server Hosting Solutions Only at BODHost
24x7 Toll-Free ph. : +1. 866-662-0909
Email : sales@bodhost.com | MSN : sales@bodhost.com
Reply With Quote
  #3 (permalink)  
Old 06-12-09, 16:30
BOD Member
 
Join Date: Jun 2009
Posts: 50
Default

Do you mean block people from accessing your website via proxy? Well, it's not perfect, but there is a way to do something like it. Just add the following to your .htaccess file (or create it if it doesn't exist):

Code:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:VIA}                 !^$ [OR]
RewriteCond %{HTTP:FORWARDED}           !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR}     !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR]
RewriteCond %{HTTP:XROXY_CONNECTION}    !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED-FOR}     !^$ [OR]
RewriteCond %{HTTP:FORWARDED-FOR}       !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED}         !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$
RewriteRule ^(.*)$ - [F]
That should take care of most of them. ;)
Reply With Quote
  #4 (permalink)  
Old 06-13-09, 16:28
BOD Member
 
Join Date: May 2009
Posts: 51
Default

Quote:
Originally Posted by surreality View Post
Do you mean block people from accessing your website via proxy? Well, it's not perfect, but there is a way to do something like it. Just add the following to your .htaccess file (or create it if it doesn't exist):

Code:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:VIA}                 !^$ [OR]
RewriteCond %{HTTP:FORWARDED}           !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR}     !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR]
RewriteCond %{HTTP:XROXY_CONNECTION}    !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED-FOR}     !^$ [OR]
RewriteCond %{HTTP:FORWARDED-FOR}       !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED}         !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$
RewriteRule ^(.*)$ - [F]
That should take care of most of them. ;)
But as I understand things, you can always change your proxy and then this wouldn't work to keep them out. I think I like the password plan better.
Reply With Quote
  #5 (permalink)  
Old 06-14-09, 06:33
BOD Member
 
Join Date: May 2009
Posts: 48
Default

Quote:
Originally Posted by Shane Phillips View Post
Unfortunately, there is no such way you can block anonymous users from visiting your site. However, you can also setup Password protect directories which will only allow users with credentials to proceed further.

Regards,

Shane Phillips
Hi Shane,

How exactly can I set up this password protection? I've been wondering the same thing here and figured there was no real way to block them.
Reply With Quote
  #6 (permalink)  
Old 06-16-09, 10:37
BOD Member
 
Join Date: May 2009
Posts: 50
Default

Right, ok and thanks for the information. And yes, they can always change the proxy and come back with a different IP I guess.
Reply With Quote
  #7 (permalink)  
Old 06-16-09, 10:53
BOD Member
 
Join Date: Jun 2009
Posts: 50
Default

Quote:
Originally Posted by madmax View Post
But as I understand things, you can always change your proxy and then this wouldn't work to keep them out. I think I like the password plan better.
Actually, what that does is it detects whether a person is using a proxy connection and if they are then it blocks them. It's far from perfect, nothing is, but it does work very well to screen out most proxy users.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 13:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.