Reputation:
i added this code to .htaccess and place it the root of my website:
but it's seems it doesn't work, I'm getting server error page
can you please tell me what i did wrong?
Thank you
Upvotes: 0
Views: 76
Reputation: 186662
Get rid of it. That's PHP code, .htaccess is for Apache code/syntax. I think you want something like:
<Limit GET POST>
Order Deny,Allow
Deny from All
Allow from 69.20.39.30
</Limit>
Specify the IPs that you want, assuming this is some sort of restricted area.
Upvotes: 3