28, May 2012

Blocking Proxy servers from hitting site - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Blocking Proxy servers from hitting site
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Blocking Proxy servers from hitting site  (Read 3009 times)
World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« on: Mar 26, 2007, 08:57:21 pm »

How do I keep proxy servers from hitting my site?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Mar 26, 2007, 09:45:44 pm »

How do I keep proxy servers from hitting my site?

you can start blocking IP adresses (I think that are only a few thousands) Smiley

World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #2 on: Mar 26, 2007, 10:02:15 pm »

I there really not another way to block proxies?  I have hit sites through a proxy and gotten a "you can not access this site through a proxy" message.   So their must be a way - right?!
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Mar 26, 2007, 10:04:54 pm »

I there really not another way to block proxies?  I have hit sites through a proxy and gotten a "you can not access this site through a proxy" message.   So their must be a way - right?!
btw. why do you wanna do that?

World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #4 on: Mar 26, 2007, 10:07:55 pm »

I have one part of my site that is only for communication between ourselves & my step-daughters mother & it is being hit through a proxy server, and I would like to block that.

If there really is NO way to block proxies, can I make it where just one IP address is allowed to hit a page?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Mar 26, 2007, 10:20:36 pm »

what about to password protect that part?
or restrict the pages to a few IP addresses?

World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #6 on: Mar 26, 2007, 10:23:35 pm »

It is password protected. 

How do I restrict to just a few IP addresses?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Mar 26, 2007, 10:36:27 pm »

It is password protected. 

How do I restrict to just a few IP addresses?
Code:
<?php
if ($_SERVER['REMOTE_ADDR'] != '245.343.343.44') {
  
header('Location: http://www.go2hell.com');
  exit;
}

World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #8 on: Mar 26, 2007, 10:40:39 pm »

wouldn't that just block that certain IP, how do I block them all but one?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Mar 26, 2007, 10:44:33 pm »

wouldn't that just block that certain IP, how do I block them all but one?
the IP address should be yours

World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #10 on: Mar 26, 2007, 10:48:46 pm »

So I put in the address I don;t want blocked & all others get booted - right....
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: Mar 26, 2007, 11:21:35 pm »

So I put in the address I don;t want blocked & all others get booted - right....
yep

World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #12 on: Mar 26, 2007, 11:24:14 pm »

Coolness - Thanks!
World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #13 on: Mar 27, 2007, 03:46:09 am »

OK, now how do I block a certain IP?

I am just curious....

Oooo.... And can you send a message just to a certain IP address?!
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #14 on: Mar 27, 2007, 07:18:01 am »

OK, now how do I block a certain IP?

I am just curious....

Oooo.... And can you send a message just to a certain IP address?!

check the php manual about array() and in_array()

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6307
Tags : Proxy Blocking Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Blocking Proxy servers from hitting site
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:23:07 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.