![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jan 2015
Posts: 472
|
Problem with hotlinking websites
Hello guys
I used following codes to block images of my websites on hotlinks sites, I put them on .htaccess file, But they don't work ( I cleared browser cache as well, Even tested them in Remote desktop VPS) Does anyone have any idea? Code:
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mywebsite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ https://i.imgur.com/ZtXiCBw.gif [L] Code:
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mywebsite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F] Code:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?website.com [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?website.com.*$ [NC] RewriteRule \.(gif|jpg)$ - [F] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
♦ Web Developer ♦
Industry Role:
Join Date: May 2005
Location: Full-Stack Developer
Posts: 12,468
|
Code:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^https://(www\.)example.com/.*$ [NC] RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf)$ https://www.example.com/gofuckyourself.gif [R,L] It also shows a gofuckyourself.gif to leechers. If you simply want to block it, change the last line to: Code:
RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf)$ - [F] ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Jan 2015
Posts: 472
|
Quote:
I've tried most methods but neither of them work How about cloudflare? They have a feature as "Hotlink Protection", Have you ever tried this feature? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Registered User
Industry Role:
Join Date: Jun 2017
Posts: 32
|
Why you will do any against "hotlinking" ?
? Maybe, because you have only LIMITED traffic ? Then CHANGE to UNlimited... ...AND USE the hotlinks for YOUR OWN ! BRAND all images with YOUR domain ;-) text on images [for example]: "ORIGINAL-image in FULL-size with FREE bonus ONLY at hddp:// www . pornuploader . com.." |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Jan 2015
Posts: 472
|
Quote:
Hundred and hundred of images of my websites have been linked to these "Hotlink websites" but i didn't get any traffic through them, I've seen that the domain rank in Google usually goes down after that the images get linked to such websites. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
|||||||
|
|||||||
Bookmarks |