Say if someone clicks one on my links from a website called lalala.com I want to make it so that all clicks directed to my site from lalala.com to redirect to a "go away.jpg" . Any ideas how I can do this with htacess?
you want to redirect your old site to a jpg file ??? am i correct ??? i think you can redirect it with meta redirect (, if i have understood correctly)
In short, I want to make it that if you click my site link on a certain domain, you get a jpg message.
The only way of knowing where a visitor comes from is the HTTP_REFERER variable - this data is sent by the client so it is considered unreliable. Some visitors may have their browser setup to not send the referrer URL, or send a custom referrer of their own choice. The code for using mod_rewrite to check the referrer and rewrite to another location is: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_REFERER} ^https?://([^/]*)blockeddomain\.com RewriteRule .* blocked.jpg [L] Code (markup): Place it in your domain root .htaccess file (domain.com/.htaccess), change blocked.jpg to the path (from the root of the domain) to the image to show and blockeddomain\.com to the name of the domain to block.