Answer the question
In order to leave comments, you need to log in
What is the protection for pictures on anysex.com?
I ran into a problem if I create an HTML page on my apache server and place a picture from the site on it
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<img src="http://screenshots.anysex.com/videos_screenshots/25000/25140/170x128/1.jpg" alt="" />
</body>
</html>
Answer the question
In order to leave comments, you need to log in
From here: blogerator.ru/page/fajl-primery-htaccess-redirekt-...
Are you tired of people who place pictures published on your site on their resources, thereby wasting your traffic and creating an unnecessary load on your hosting? This code, placed at the end of your .htaccess file, will prevent third-party sites from loading your images.
Options +FollowSymlinks
#Запрещаем загрузку файлов с внешних сайтов
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?site.com/ [nc]
RewriteRule .*.(gif|jpg|png)$ http://site.com/stop.gif[nc]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question