ballhogjoni Posted September 30, 2008 Share Posted September 30, 2008 How can you make htaccess run a file? I have a php file that checks the visitors ip address and if they are not from the correct country they can't view my site. I want to run this file before any other file is ever ran on my server. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 30, 2008 Share Posted September 30, 2008 That question doesn't make sense. I don't even know where to move it. ??? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted September 30, 2008 Share Posted September 30, 2008 That question doesn't make sense. I don't even know where to move it. ??? That's why they made Magic 8 Balls. Durr. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 30, 2008 Share Posted September 30, 2008 Options +FollowSymlinks RewriteEngine On RewriteRule (.+?) run/with/this.php Quote Link to comment Share on other sites More sharing options...
DarkWater Posted September 30, 2008 Share Posted September 30, 2008 Options +FollowSymlinks RewriteEngine On RewriteRule (.+?) run/with/this.php He wants to use like, a true/false value from a PHP script to see if they can get sent off to the page. >_< Quote Link to comment Share on other sites More sharing options...
xtopolis Posted October 1, 2008 Share Posted October 1, 2008 OP knows that IPs can be fake/proxies, right? Quote Link to comment Share on other sites More sharing options...
CroNiX Posted October 1, 2008 Share Posted October 1, 2008 Why not have your php file which detects your criteria just included at the top of every page on your site? Have it redirect to google or something... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.