Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by epifanio67
at 2024-07-21 15:49:11
Point:500 Replies:7 POST_ID:829061USER_ID:11964
Topic:
PHP Scripting Language;;
Hello Experts,
What is the best way to prevent users from downloading images from my site?
Regards,
What is the best way to prevent users from downloading images from my site?
Regards,
Author: epifanio67 replied at 2024-07-21 16:20:43
thank you experts... I truly appreciate your help...
Regards,
Regards,
Accepted Solution
Expert: Ray Paseur replied at 2024-07-21 16:07:38
167 points EXCELLENT
You might find this useful. The strategy is to make it impossible for the image to have a direct-to-file URL.
http://www.experts-exchange.com/Programming/Languages/Scripting/PHP/A_10065-Adding-a-Watermark-to-an-Image.html
http://www.experts-exchange.com/Programming/Languages/Scripting/PHP/A_10065-Adding-a-Watermark-to-an-Image.html
Assisted Solution
Expert: Gary replied at 2024-07-21 16:04:53
166 points EXCELLENT
You can prevent hotlinking
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?yourdomain.com [NC]
RewriteRule .(jpg|jpeg|png|gif)$ stolen_from_my_site.jpg [NC,R,L]
edit:
Actually rowby's solution is similar - I'll leave mine since it gives you the option of redirecting to another image that you can make that says Stolen from mysite.com just to piss the other website off. (but Rowby deserves the main credit)
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?yourdomain.com [NC]
RewriteRule .(jpg|jpeg|png|gif)$ stolen_from_my_site.jpg [NC,R,L]
edit:
Actually rowby's solution is similar - I'll leave mine since it gives you the option of redirecting to another image that you can make that says Stolen from mysite.com just to piss the other website off. (but Rowby deserves the main credit)
Author: epifanio67 replied at 2024-07-21 16:01:16
sorry duncan.... I must have posted the comment to Gary seconds after you posted yours..
that's what I was looking for....
thanks..
I will wait a few more min for more suggestions...
that's what I was looking for....
thanks..
I will wait a few more min for more suggestions...
Author: epifanio67 replied at 2024-07-21 15:59:05
hahahahaha...
ok... I realize it is impossible.....
but is there ways I can 'prevent' the image URLs from being used on other sites via htaccess file?
funny.... and I agree...
ok... I realize it is impossible.....
but is there ways I can 'prevent' the image URLs from being used on other sites via htaccess file?
funny.... and I agree...
Assisted Solution
Expert: duncanb7 replied at 2024-07-21 15:59:02
167 points EXCELLENT
Could you do it on .htaccess file instead of php so that users can not access image site ?
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www.)?localhost [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?localhost.*$ [NC]
RewriteRule .(gif|jpg)$ - [F]
And the site if let user view the image, in other words, what they view and what they can
download unless don't putting it on servers
Duncan
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www.)?localhost [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?localhost.*$ [NC]
RewriteRule .(gif|jpg)$ - [F]
And the site if let user view the image, in other words, what they view and what they can
download unless don't putting it on servers
Duncan
Expert: Gary replied at 2024-07-21 15:50:57
Take your website off the internet.
If you don't want to do that then there is nothing you can do about it.
If you don't want to do that then there is nothing you can do about it.