Hi there I am after a piece of code that will stop images coming from other domains from loading on my own website. For example, I create a webpage, and then a spammer comes along and posts a whole bunch of images from a particular domain (e.g. spam.com). How do I stop all images from the domain spam.com appearing on my own website? Thanks. PS: I am not after an anti-spam solution or something like that, I just need the code to let me achieve the above.
Add on of these codes to your .htaccess file Deny all users to download <Files *.jpg> Order Deny,Allow Deny from all </Files> Deny only a specific IP adress. <Files *.jpg> Order Allow,Deny Deny from 69.28.130.xx Allow from all </Files> And nobody of just one IP adress can use any pictures from your website. But what you also can do is change the images.. Free advertising for you, put your url big in the images
You can enable this from your Cpanel using a option to enable or disable hot linking. Cheers, Dreamchaser