johnnyk Posted September 6, 2006 Share Posted September 6, 2006 I don't know much about .htaccess and I never learned about mod_rewrite or whatever that fancy thing is.What I want to do is deny from a certain domain. Instead of a 403 page, I want anyone who is from that domain to see an image when they go to my site. Any idea how that would happen? Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/ Share on other sites More sharing options...
oldmanice Posted September 6, 2006 Share Posted September 6, 2006 Your going to have to set there ip address as deny and block them from your apache page. Once this is done update the error 404 page and put in the picture. Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-86817 Share on other sites More sharing options...
johnnyk Posted September 6, 2006 Author Share Posted September 6, 2006 But I want the blocked domains to get a different 403 (or 404 or whatever it is) than everyone else. Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-86836 Share on other sites More sharing options...
oldmanice Posted September 6, 2006 Share Posted September 6, 2006 Yes you have to update your error 404 pages for those domians only. Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-86851 Share on other sites More sharing options...
johnnyk Posted September 6, 2006 Author Share Posted September 6, 2006 Isn't there a way to do it using something like:RewriteCond %{REMOTE_HOST} [i]whatever[/i]RewriteRule [i]whatever[/i] Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-86857 Share on other sites More sharing options...
oldmanice Posted September 6, 2006 Share Posted September 6, 2006 johnnyk sorry mate I really dont know what you want to do now Im not the right person for that. Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-86878 Share on other sites More sharing options...
johnnyk Posted September 6, 2006 Author Share Posted September 6, 2006 OK I'll try to make sense. I want any visitors from a certain host to see an image instead of the website. Is there a way to do that using only .htaccess? Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-86885 Share on other sites More sharing options...
oldmanice Posted September 6, 2006 Share Posted September 6, 2006 Do you mean that those certian users that you want blocked you want them to see a image. Yes you have to modifey the 404 error page for those users and put the image in the 404 error page. Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-86888 Share on other sites More sharing options...
ober Posted September 6, 2006 Share Posted September 6, 2006 Certain comments and posts have been deleted from this thread. Let's try to stay on topic and only post when you have something valid to add to the conversation. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-87058 Share on other sites More sharing options...
oldmanice Posted September 8, 2006 Share Posted September 8, 2006 johnnyk,Did you manage to get it working in the end? Quote Link to comment https://forums.phpfreaks.com/topic/19838-for-domain-deny-and-replace-with-image/#findComment-88586 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.