68 Classifieds Forums

Blocking IP address with .htaccess

This is a discussion on Blocking IP address with .htaccess within the v3.0 Questions & Support forums, part of the v3.0.x Help & Support category; I have a competitor that keeps lurking on my site, how do I block his IP address? This starting to ...


Go Back   68 Classifieds Forums > Archives > v3.0.x Help & Support > v3.0 Questions & Support

 
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-01-2008, 08:59 PM
Member
 
Join Date: Sep 2007
Posts: 58
Rep Power: 7
Jessej is on a distinguished road
Default Blocking IP address with .htaccess

I have a competitor that keeps lurking on my site, how do I block his IP address? This starting to become a problem. I have tried a simple >htaccess file and it seems that it shut down my site. I removed it so if there is anyone that could help me test it that would be great.
Cheers

  #2  
Old 02-02-2008, 12:16 AM
Lhotch's Avatar
Moderator
 
Join Date: Mar 2006
Posts: 3,655
Rep Power: 90
Lhotch is just really niceLhotch is just really nice
Default

As Ive mentioned before the best bet is to use your web providers control panel to specify an IP if they offer that feature. If not a google search for "htaccess block ip" will return all the info you should need.

http://www.javascriptkit.com/howto/htaccess5.shtml

http://www.clockwatchers.com/htaccess_block.html

also keep in mind your host may or may not allow this functionality, only they will be able to tell you for sure.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
  #3  
Old 02-02-2008, 03:27 PM
cheesegrits's Avatar
PHP Mechanic
 
Join Date: Nov 2007
Posts: 118
Rep Power: 8
cheesegrits has a spectacular aura about
Default

Quote:
Originally Posted by Jessej View Post
I have a competitor that keeps lurking on my site, how do I block his IP address? This starting to become a problem. I have tried a simple >htaccess file and it seems that it shut down my site. I removed it so if there is anyone that could help me test it that would be great.
Cheers
If you want to post the content of your htaccess, I can tell you what you ware doing wrong.

-- hugh
  #4  
Old 02-02-2008, 05:28 PM
Mike-N-Tosh's Avatar
Moderator
 
Join Date: Jan 2007
Posts: 990
Rep Power: 30
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Quote:
Originally Posted by Jessej View Post
I have a competitor that keeps lurking on my site, how do I block his IP address?
Of course, unless he/she has a static IP address, that may not help you. Most ISPs use a DHCP server which means that the IP address could change.
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8, 4.1b3

Templates for sale | 68 Classifieds Customizations | My blog on 68
Web Hosting | Web Design & Development
I am not a 68C employee, just a user and try to help out
  #5  
Old 02-02-2008, 09:31 PM
Member
 
Join Date: Sep 2007
Posts: 58
Rep Power: 7
Jessej is on a distinguished road
Default code

<Limit GET>
order allow,deny
deny from 193.41.*.*
allow from all
</Limit>

Is the code?
This guy will not leave my site alone.
  #6  
Old 02-03-2008, 01:24 AM
Mike-N-Tosh's Avatar
Moderator
 
Join Date: Jan 2007
Posts: 990
Rep Power: 30
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

I would NOT recommend that you do this as you are blocking a full class B block.

This means that NO ONE that uses any IP address from 193.41.0.1 through 193.41.255.255 will be able to access your site. That's ALOT of IP addresses and most likely most of the addresses from the same ISP that this individual is on. It's a large enough block that it could actually span more than one ISP (if they are small ISPs).

Just checking. What I'm wondering is, "What is this person doing?" Is he/she being malicious? Is he/she attacking the site, etc.? If that's the case and I assume your getting this info from your logs, then I would report it directly to their ISP as that would be a clear violation of the TOS for use of the ISP access. You can find out exactly who the ISP is by doing a whois on the IP address. Having actual logs to backup your claims of malicious behavior will most definitely suffice almost any ISP I've contacted regarding this in the past. Believe me, I've reported quite a few.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8, 4.1b3

Templates for sale | 68 Classifieds Customizations | My blog on 68
Web Hosting | Web Design & Development
I am not a 68C employee, just a user and try to help out
 

Bookmarks

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
When not using Address or City Grebogreen v4 Questions & Support 2 07-05-2007 12:46 PM
.htaccess = 1.htaccess ?? garysr v3.1 Questions & Support 2 12-17-2006 01:28 PM
E-Mail filter and IP/Domain blocking... bgordon v3.1 Modules & Modifications 2 11-10-2006 11:06 PM
Validating Address - preventing spammers dawyatt v3.1 Questions & Support 1 09-13-2006 02:16 PM
IP Address in Contact form SkGold v3.0 Questions & Support 5 05-07-2006 08:35 PM


All times are GMT -4. The time now is 05:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22