[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-04-2007, 10:13 PM   #1 (permalink)
Senior Member
 
champ_rock's Avatar
 
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,768
8,037.05 NP$ (Donate)

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

p.s: the upload function of this forum is not working. i am getting a php error while trying to upload it here.
__________________
Akshay Jain
......................
champ_rock is offline  
Old 08-04-2007, 10:40 PM   #2 (permalink)
Danltn.com
 
Daniel's Avatar
 
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
13.51 NP$ (Donate)

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, 12:52 AM   #3 (permalink)
Senior Member
 
champ_rock's Avatar
 
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,768
8,037.05 NP$ (Donate)

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


Quote:
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
__________________
Akshay Jain
......................
champ_rock is offline  
Old 08-24-2007, 02:29 AM   #4 (permalink)
NamePros Member
 
Join Date: Oct 2006
Posts: 65
0.00 NP$ (Donate)

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
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

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


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:25 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85