![]() |
|
|
|
Me like track days
Join Date: Sep 2003
Location: Kirkland, WA
Posts: 10,209
|
![]()
Friend asks:
Is there a(n) easy way to limit the ability of certain IP addresses to view a web site? I didn't know, but I'll be you guys do - ! Fire away -
__________________
- Craig 3.4L, SC heads, 964 cams, B&B headers, K27 HF ZC turbo, Ruf IC. WUR & RPM switch, IA fuel head, Zork, G50/50 5 speed. 438 RWHP / 413 RWTQ - "930 is the wild slut you sleep with who tries to kill you every time you "get it on" - Quote by Gabe Movie: 930 on the dyno |
||
![]() |
|
Registered
Join Date: Mar 2003
Posts: 10,320
|
A firewall can be used to block IPs from accessing your (server) IP (if you are on a dedicated server, one IP per domain.). You can also use options in the Apache config files to do it if you aren't on a dedicated server . Not sure what the options are for IIS (the MS webserver, although you can run Apache on windows boxes no problem).
If you want to limit the number of views, etc. per IP, that is doable also via cookies and server side programming. What exactly do you want to do?
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.” |
||
![]() |
|
You do not have permissi
Join Date: Aug 2001
Location: midwest
Posts: 39,842
|
Registration with e-mail log-in will also limit the viewers and cut down on bandwidth costs.
For instance, Craiglist uses recatcha.net to add another (human) layer to cut down on spam and verify posters. Do you want to set up a personal site and not be deluged with costs from fake seach-engine links? There are probably plenty of free servers out there which allow limited bandwidth, and free .html programs to set up a basic site. |
||
![]() |
|
Me like track days
Join Date: Sep 2003
Location: Kirkland, WA
Posts: 10,209
|
He wants to keep 2 particular people - whom I assume have each a unique IP address (?) - from having the ability to have any access whatsoever to his web site -
How?
__________________
- Craig 3.4L, SC heads, 964 cams, B&B headers, K27 HF ZC turbo, Ruf IC. WUR & RPM switch, IA fuel head, Zork, G50/50 5 speed. 438 RWHP / 413 RWTQ - "930 is the wild slut you sleep with who tries to kill you every time you "get it on" - Quote by Gabe Movie: 930 on the dyno |
||
![]() |
|
Registered
|
You can do this by creating an .htaccess file and placing it in the root directory.
It should look something like: order allow,deny deny from 123.456.789.123 deny from 987.654.321.321 allow from all
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
Me like track days
Join Date: Sep 2003
Location: Kirkland, WA
Posts: 10,209
|
Newbie question:
How does he find the IP address of the parties - via e-mail or ?
__________________
- Craig 3.4L, SC heads, 964 cams, B&B headers, K27 HF ZC turbo, Ruf IC. WUR & RPM switch, IA fuel head, Zork, G50/50 5 speed. 438 RWHP / 413 RWTQ - "930 is the wild slut you sleep with who tries to kill you every time you "get it on" - Quote by Gabe Movie: 930 on the dyno |
||
![]() |
|
![]() |
Registered
Join Date: Mar 2005
Location: London, ON, Canada
Posts: 1,737
|
FYI, it's a bad assumption to assume that a single person will be using a single IP address. Some big ISP's (AOL, for instance), have a small group of IP addresses that ALL of their customers use. That means that if you block one IP address, it could very well block tens/hundreds of thousands of users.
Also, if the person is using dial-up, or some DSL/cable connections, their IP addresses can change quite regularly, so if you block specific IP's, it might only be valid for a small amount of time. As to finding out the IP address, you CAN figure out their IP address at the time from emails, assuming they weren't using some form of web-mail (Gmail, etc). The best bet is to tell us the details of how the people are interacting with the user and his site, what kind of site it is, how it is being hosted (on a generic 3rd party hosting company, custom-made site hosted elsewhere, etc.), as the specific methods of how to do this are VERY context specific. What is the user doing to piss off the client? And why "view the site only a certain number of times"? Basically, you've asked a VERY generic question that is almost impossible to answer, IMO, and we need more info to figure it out. $0.02 (CDN) Last edited by jeffgrant; 08-24-2008 at 07:37 PM.. Reason: misread the initial question... my bad. |
||
![]() |
|
Me like track days
Join Date: Sep 2003
Location: Kirkland, WA
Posts: 10,209
|
Is it the IP address that allows, for example, a site to know that I am in Kirkland, WA?
__________________
- Craig 3.4L, SC heads, 964 cams, B&B headers, K27 HF ZC turbo, Ruf IC. WUR & RPM switch, IA fuel head, Zork, G50/50 5 speed. 438 RWHP / 413 RWTQ - "930 is the wild slut you sleep with who tries to kill you every time you "get it on" - Quote by Gabe Movie: 930 on the dyno |
||
![]() |
|
Insert Tag Line HERE.....
|
the short answer is no. limiting an ip address is not the way. you can get aroud that by simply opening up your command prompt and typing ip release then renew and youll get another one that quick. it depends on your host. the only way to truly do it, is by using a login page and dont give him access.
|
||
![]() |
|
Slackerous Maximus
Join Date: Apr 2005
Location: Columbus, OH
Posts: 18,162
|
Quote:
You can forget about manually blocking a person via IP unless the unwanted traffic is coming from a business or government organization. All home connections use dynamically assigned address, so the offending person could easily just request a new address. If it is coming from an indentifiable organization, you could block them entirely, but it would be far more sporting to have an attorney write a well crafted letter, explaining that you do not appreciate the offending behavior. What are the domain names of the e-mail address(Everything after @ in the address)?
__________________
2022 Royal Enfield Interceptor. 2012 Harley Davidson Road King 2014 Triumph Bonneville T100. 2014 Cayman S, PDK. Mercedes E350 family truckster. |
||
![]() |
|
Registered
Join Date: Mar 2003
Posts: 10,320
|
There is some geomapping available, but the data changes constantly.
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.” |
||
![]() |
|
Registered
|
Here is a related question...
I know my IS guy can see what sites I visit. He's told me he can. But if it is a password protected site can he read what I am posting or viewing?
__________________
Jacksonville. Florida https://www.flickr.com/photos/ury914/ |
||
![]() |
|
![]() |
Too big to fail
|
Quote:
The normal access logs won't show the content, but he could set up WireShark or some such and specifically snarf your traffic.
__________________
"You go to the track with the Porsche you have, not the Porsche you wish you had." '03 E46 M3 '57 356A Various VWs |
||
![]() |
|
Registered
Join Date: Mar 2003
Posts: 10,320
|
Can't sniff it if it SSL encrypted. Otherwise, everything is open. For untrusted connections (hotel wireless, etc) I use a SSH tunnel to a server I run. You can do the same with a VPN.
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.” |
||
![]() |
|