Log In · Register

 
are subdomains allowed to do this?
miszxjojo
post Mar 4 2009, 01:00 PM
Post #1


Senior Member
*****

Group: Member
Posts: 354
Joined: May 2007
Member No: 526,982



so i have a subdomain. and i was wondering if i was allowed to ban people? or does your host have to do that for you?
 
 
Start new topic
Replies
fixtatik
post Mar 4 2009, 04:21 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



if you know the IP address of the person you're looking to block, you can just use a simple rule in a .htaccess file.
if you don't already have a .htaccess file, you'll need to create one (the entire file is named ".htaccess"; there's nothing before or after it).

paste this into the file, save it, and upload it to the root directory of your domain (yoursite.yourhostsite.com/.htaccess):
CODE
order allow,deny
deny from ###.###.###.###
deny from ###.###.###.###
allow from all
replace the # symbols with the IP address. if you need more, just add them to the list.
 

Posts in this topic


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