Jump to content

Archived

This topic is now archived and is closed to further replies.

johnnyk

For domain, deny and replace with image

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
But I want the blocked domains to get a different 403 (or 404 or whatever it is) than everyone else.

Share this post


Link to post
Share on other sites
Yes you have to update your error 404 pages for those domians only.

Share this post


Link to post
Share on other sites
Isn't there a way to do it using something like:
RewriteCond %{REMOTE_HOST} [i]whatever[/i]
RewriteRule [i]whatever[/i]

Share this post


Link to post
Share on other sites
johnnyk sorry mate I really dont know what you want to do now Im not the right person for that.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.