Jump to content

Talk:.htaccess

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 83.13.104.178 (talk) at 00:15, 12 August 2006 (Space in url). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Someone please fix the spanish in this article... +sj + 07:23, 22 Apr 2005 (UTC)


Deny users by Country

Is that possible modify the htaccess file to deny by country? --Saphire diablo 10:32, 30 April 2006 (UTC)[reply]

Sure. You can block domains, for instant. You can also deny access to certain IP ranges (you'd have to find them on the web). However, what's the point?
1. It can be easily overridden by an anonymous proxy (lock them if you can).
2. Domains are registered in one country, but administered worldwide. It's possible that some people are in a global TLD, or in another country's (Tuvalu is popular, as is Armenia, or FS of Micronesia).
3. IP ranges are in a complete disarray now. You can't reliably predict the location of the ip address. Even if you can, the reported IP is frequently something completely diferent from the actual IP.
4. Even if you account for all the above, the user will find a way to access your data if it's really that important.
BTW, what data can be so important as to block users from a certain country from accessing it? And what country is it???

Space in url

Can spaces be used in the url for redirection e.g. RedirectPermanent /old%20one.html http://www.wiki.co.nz/new.html this does not seem to work for me, I get a 404 Onco_p53 11:34, 24 July 2006 (UTC)[reply]

404 is a client error. It might be possible that the browser is interpreting the %20 wrong and doesn't change it into a space, but expects actually spelled out "%20" in the address. Have you tried quoting the addresses?
RedirectPermanent "/old%20one.html" "http://www.wiki.co.nz/new.html"