Help - Search - Members - Calendar
Full Version: are subdomains allowed to do this?
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
miszxjojo
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?
Maccabee
You can give your admin the ip address and ask them to ban them.
Heres some links with codes to do it though.
http://forums.digitalpoint.com/showthread.php?t=67344
http://www.htmlbasix.com/blockusers.shtml
imperfectionistx
toolator.com works for me. It "bans" through redirecting though.
newkidontheblock
as long as you have to option to do that and its not against any of the admin terms then its good.
fixtatik
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.