Log In · Register

 
blocking a specific computer...
Melissa
post Jun 17 2008, 06:41 PM
Post #1


;)
******

Group: Duplicate
Posts: 2,374
Joined: Feb 2004
Member No: 3,760



apparently, my dad's been a complete loser and snooping around my website. we have the same internet provider (since i'm at home) so i don't think blocking his IP would be ideal at the moment... is there a way to block specific computers from visiting your site?
 
 
Start new topic
Replies
synapse
post Jun 18 2008, 07:50 AM
Post #2


Live long and prosper.
********

Group: Staff Alumni
Posts: 10,142
Joined: Apr 2007
Member No: 514,926



You would have to edit the .htaccess file on your directory. (I'd make a backup too) and in the htaccess file, you would have to change the Authentication settings.

QUOTE
Visitors coming from that address will not be able to see the content behind this directive. If, instead, you have a machine name, rather than an IP address, you can use that.

deny from hostname.example.com


( Full Article )

To find the mahine name of his computer, go on his PC, go to the command prompt, if you don't know how to get to that, go to run > cmd.

After you are there, you should have the C:/ directory open, type in echo %computername% and press enter/return it should then give you the computer name, such as, mine is TCUNNIN-PC
 
mipadi
post Jun 18 2008, 07:08 PM
Post #3


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



QUOTE(kreios @ Jun 18 2008, 08:50 AM) *
You would have to edit the .htaccess file on your directory. (I'd make a backup too) and in the htaccess file, you would have to change the Authentication settings.
( Full Article )

To find the mahine name of his computer, go on his PC, go to the command prompt, if you don't know how to get to that, go to run > cmd.

After you are there, you should have the C:/ directory open, type in echo %computername% and press enter/return it should then give you the computer name, such as, mine is TCUNNIN-PC

Couple points:
  1. Blocking a computer by hostname is no different than blocking by IP, which the poster already suggested was not a possibility.
  2. Your "machine name", in this case, is not the name of your PC in Windows per se; it is a hostname assigned to your computer, such as www.createblog.com.
 

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: