Hi
I want to restrict a page where someone comes from abroad to show another page and when the national network to the actual page opens.
I'm not familiar so much for help.
Thank you
Hi
I want to restrict a page where someone comes from abroad to show another page and when the national network to the actual page opens.
I'm not familiar so much for help.
Thank you
The only way to accomplish this is to run a database which converts the IP address into a latitude, longitude and then country. These databases would run you about $1000 and are very large, about 150meg+.
Is there a code and how to do that my question was not what takes place
Im guessing what you meant is you have two index pages.
if someone is from your country you want it to display say country_mine.html
and if someone is from another country you want to display country_other.html
There is no way to do this without a sql database. If you had the database it would be a simple 10-15 lines of php.
Last edited by driveflexfuel; 09-28-2009 at 01:22 PM.
We have such a code, ie . htaccess
example
I need a code that directs it to the pages<Files index.php>
order allow,deny
deny from 62.93.69.0/24
</Files>
<Files admin.php>
order allow,deny
deny from 188.117.192.0/23
</Files>
Or something similar sounds like what you want to do.Code:RewriteCond %{REQUEST_URI} fileYouWantToProtect RewriteCond %{REMOTE_ADDR} ^62\.93\.69\.0$ RewriteRule fileYouWantToProtect fileToBeDirectedTo
The second condition can be adjusted to do ranges of ip's. But then you need a new Condition for each range of ips.
Nothing is always absolutely so.
Make example code I have placed above it would look like there are set exemplary page
Thank you
You should be able to find free IP locator services that convert an IP address into a latitude and longitude, and free reverse geocoding services to convert geographic coordinates to an address.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.
It is okay but I need code like this will really work.
Above wrote that not understand so much love together to invent something like this did not understand.
Thanks a lot
You could also go through the http parameters, but that is a way more complex and unsure method.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki