Results 1 to 5 of 5
-
12th Sep 2011, 05:39 PM #1OPMemberWebsite's:
fs-ddl.comhtaccess - images
I run my site on WordPress .
I am interested in how to forbid images hosted on my site , sharing and showing on other sites/forum ... ? Point is to save bandwitch !
Also , i found a ton of tutorials on Google , but evan if i done like it said i think i didn't do it right ! Images are still showing ! I am making some mistake but i don't know where . Can anyone help me with this and tell what do i have to add in htaccess , where to put it , and where to put .htaccess file ?
I have only one folder on host that i want to protect !
Thanks !Dekstr Reviewed by Dekstr on . htaccess - images I run my site on WordPress . I am interested in how to forbid images hosted on my site , sharing and showing on other sites/forum ... ? Point is to save bandwitch ! Also , i found a ton of tutorials on Google , but evan if i done like it said i think i didn't do it right ! Images are still showing ! I am making some mistake but i don't know where . Can anyone help me with this and tell what do i have to add in htaccess , where to put it , and where to put .htaccess file ? I have only one Rating: 5
-
12th Sep 2011, 05:44 PM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inAdd this info to .htaccess
If you want to redirect them to different image:
Code:RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://blockedimage.jpg [L]
Or if you just want to disallow hotlinking then:
PHP Code:RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?wzfak.com [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
-
12th Sep 2011, 05:52 PM #3OPMemberWebsite's:
fs-ddl.comok this is how it looks
Code:# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?fs-ddl\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://fs-ddl.com/uploads/logo.png [L] # END WordPress
I think it is working now , but i just want to check it did i do it right this time
edit :
i just want to forbid to anyone to use images in for example in forum posts or anything like that !
-
12th Sep 2011, 05:55 PM #4Respected MemberWebsite's:
DL4Everything.com Soft2050.in
Just replace:
PHP Code:RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://fs-ddl.com/uploads/logo.png [L]
PHP Code:RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
-
12th Sep 2011, 05:57 PM #5OPMemberWebsite's:
fs-ddl.comi'we done it like you said . thank you for your help !!!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Broken Images overlapping New Images
By Leeds in forum vBulletinReplies: 8Last Post: 17th Apr 2012, 08:57 PM -
.htaccess Help Please
By l0calh0st in forum Web Development AreaReplies: 3Last Post: 4th Apr 2011, 03:29 PM -
Free images host uploader - images will not expire!
By jippo in forum Useful SitesReplies: 11Last Post: 11th Feb 2011, 11:58 PM -
Htaccess
By Ambition in forum General DiscussionReplies: 3Last Post: 5th Oct 2010, 11:24 AM -
Images Watermarker of my Images and Upload it!!
By Bytes in forum Completed TransactionsReplies: 11Last Post: 5th Aug 2010, 11:24 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...