Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-22-2004, 09:37 PM   #1
Member (5 bit)
 
Join Date: Jun 2004
Posts: 22
Blocking

Hello, A freind of mine is having problems with a person that is herasing her on her online journal and she has the ip of the person. Is there a code she can add to her journal to block this IP. It is a ip that stays the same
Airwalk2007 is offline   Reply With Quote
Old 08-22-2004, 11:07 PM   #2
Member (6 bit)
 
Driftwood50's Avatar
 
Join Date: Jun 2004
Location: St. Louis, Missouri
Posts: 53
Wink Blocking IP's

Hi Airwalk 2007,

Check out "ZoneAlarm Pro." You can use the freeware (ZoneAlarm) which will never expire but the Pro version offers a variety of features including the ability to block individual IP's. Here's the site to read up on it.

Free Version:
http://www.zonelabs.com/store/conten...tails.jsp?lid=
zaskulist_info#benefits

Good Luck!
Driftwood50 is offline   Reply With Quote
Old 08-22-2004, 11:24 PM   #3
Member (10 bit)
 
Join Date: Jun 2003
Location: Alaska
Posts: 903
Send a message via AIM to ZeratulsAvenger
I think he means an online journal entry site. And I dont know of anything, but could she contact an administrator and ask them about it? They would probably be able to help.
ZeratulsAvenger is offline   Reply With Quote
Old 08-22-2004, 11:48 PM   #4
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
I would presume there is a way to block individual IPs, but that would require CGI/Perl scripts or PHP/MySQL which I'm not too familiar with - does your server support those?

kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman
kram 2.0 is offline   Reply With Quote
Old 08-23-2004, 08:20 AM   #5
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Ask a simple question and get a couple of wrong answers.

One, using ZoneAlarm to block IP addresses will not work if Airwalk2007 has the site hosted elsewhere.

Two, you don't need CGI/Perl scripts or PHP/MySQL to block IP addresses. You could no doubt do it that way but that would be insane to even try when a much simpler tool is available.

The best solution would be to use mod_rewrite in an .htaccess file or a have a simple deny statement in there.

Example using mod_rewrite in .htaccess.
Code:
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^BANNED_IP_ADDRESS$
RewriteCond %{REQUEST_URI} !^/URL_TO_BE_REDIRECTED_TO$
RewriteRule ^/.* /URL_TO_BE_REDIRECTED_TO
The variables are the BANNED_IP_ADDRESS, which is the IP that you are banning and URL_TO_BE_REDIRECTED_TO which is where you want to redirect them. You could make this your 404 page or create a special denied page. Probably best to make a page that says something like Site is currently down and redirect them to that.

Example using simple deny in .htaccess.
Code:
order allow,deny
allow from all
deny from BANNED_IP_ADDRESS
The only variable would be BANNED_IP_ADDRESS.

Here is some more info on .htaccess.htaccess and mod_rewrite

You might also check with whoever hosts your site. Oftentimes they will have a control panel with an IP ban function.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:51 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2