NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page .htaccess help needed

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-04-2007, 11:13 PM THREAD STARTER               #1 (permalink)
Senior Member
 
champ_rock's Avatar
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,830
champ_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond repute
 



.htaccess help needed


please tell me whats wrong in this .htaccess file? i have tried to block commonly used hackers IP addresses and China as a whole

but when i save it, i am not able the site at all and i am getting a INternal Configuration Error

http://uck.in/htaccess.txt

thanks


**Note : anybody wishing to use this .htaccess file on your own website is free to do so
????: NamePros.com http://www.namepros.com/programming/357958-htaccess-help-needed.html

p.s: the upload function of this forum is not working. i am getting a php error while trying to upload it here.
champ_rock is offline  
Old 08-04-2007, 11:40 PM   #2 (permalink)
Danltn.com
 
Daniel's Avatar
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
 


Ethan Allen Fund Ethan Allen Fund
I can understand why you would want to block known hackers IPs, but why would you want to block China and Iraq?
Daniel is offline  
Old 08-05-2007, 01:52 AM THREAD STARTER               #3 (permalink)
Senior Member
 
champ_rock's Avatar
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,830
champ_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond repute
 



Originally Posted by Danltn
I can understand why you would want to block known hackers IPs, but why would you want to block China and Iraq?
because these countries generally bring low-quality lots and lots of traffic..

they can utilise GB's of bandwidth in a single day and the revenue u earn from them is very low. may be 0.01-0.05$ per click which is simply not profitable
champ_rock is offline  
Old 08-24-2007, 03:29 AM   #4 (permalink)
Account Closed
Join Date: Oct 2006
Posts: 65
hadrick is on a distinguished road
 



Two things is important here:

1. seperate the IPs into different deny from rules. Thats because when you are actually writing them in line, they are getting new line in ASCII and generating errors.

So instead of doing this:
Quote:
# Iraq country block
????: NamePros.com http://www.namepros.com/showthread.php?t=357958
deny from 78.109.224.0/20 80.77.176.0/20 81.90.16.0/20 88.201.0.0/17 194.117.56.0/21
Do this:
[quote]
# Iraq country block
deny from 78.109.224.0/20
deny from 80.77.176.0/20
deny from 81.90.16.0/20
deny from 88.201.0.0/17
deny from 194.117.56.0/21
[quote]

2. Some web servers require rules definition in every block. So try changing the following code too:

Quote:
<Files .htaccess>
deny from all
</Files>
to:
Quote:
<Files .htaccess>
order deny,allow
deny from all
</Files>
Let me know if any of these helped you

Good Luck.
Regards
hadrick is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 04:35 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger