ببینید من به این صورت قرار دادم :
deny from alll رو میزارم قبل </Limit> کلا باز نمیشه نه با ای پی خارج نه ایران !!!<Limit GET HEAD POST>
order deny,allow
allow from 2.144.0.0-2.147.255.255
allow from 2.176.0.0-2.191.255.255
allow from 5.22.0.0-5.22.127.255
allow from 5.22.192.0-5.22.223.255
allow from 5.23.112.0-5.23.119.255
allow from 5.28.32.0-5.28.39.255
allow from 5.34.192.0-5.34.223.255
.
.
.
.
allow from 217.172.96.0-217.172.127.255
allow from 217.174.16.0-217.174.31.255
allow from 217.218.0.0-217.219.255.255
</Limit>
ErrorDocument 403 /error.html
<Files "*.html">
Allow from all
</Files>