insideREVOLUTION
Member
Posted 1 year ago #
When I try to add a "Page" to my Wordpress blog, this code is automatically added to my .htaccess file:
BEGIN WordPress
# END WordPress
The file should look like:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?insiderevolution.net [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://www.insiderevolution.net/nohotlink.jpe [NC,R,L]
Anyone know why this does this and how to fix it?
I don't know why it's doing that, but that code basically means that people linking directly to your images (which is called: hotlinking) will get the nohotlink.jpe instead. Did you set up something like that in your web hosting account?
insideREVOLUTION
Member
Posted 1 year ago #
I put that code there myself. So yeah, I know what that does. lol. I just searched google for that code. It's the wordpress thing that I'm confused about. It's not really a big deal since I don't use pages. I just thought I would try using pages because it would be easier to edit them using wordpress instead of notepad.
insideREVOLUTION
Member
Posted 1 year ago #
to prevent this, I simply put the .htaccess file into each subfolder that i wanted to block hotlinking to. If you have images in the main directory, I'm afraid this method will not work.