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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-08-2019, 09:30 AM   #1
pornuploader
Confirmed User
 
pornuploader's Avatar
 
Industry Role:
Join Date: Jan 2015
Posts: 458
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]
pornuploader is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-08-2019, 07:44 PM   #2
Miguel T
♦ Web Developer ♦
 
Miguel T's Avatar
 
Industry Role:
Join Date: May 2005
Location: Full-Stack Developer
Posts: 12,467
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]
This should work...
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]
__________________

Full Stack Webdeveloper: HTML5/CSS3, jQuery, AJAX, ElevatedX, NATS, MechBunny, Wordpress
Miguel T is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2019, 06:51 AM   #3
pornuploader
Confirmed User
 
pornuploader's Avatar
 
Industry Role:
Join Date: Jan 2015
Posts: 458
Quote:
Originally Posted by Miguel T View Post

This should work...
It also shows a gofuckyourself.gif to leechers.

If you simply want to block it, change the last line to:

I did check. It doesn't work as well, This code blocked the all images on my own website.
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?
pornuploader is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2019, 12:42 PM   #4
Taipac
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.."
Taipac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2019, 01:35 PM   #5
pornuploader
Confirmed User
 
pornuploader's Avatar
 
Industry Role:
Join Date: Jan 2015
Posts: 458
Quote:
Originally Posted by Taipac View Post
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.."
Seems like "Hotlinkings" have bad effect on SEO
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.
pornuploader is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
rewritecond, %http_referer, [nc], rewriterule, rewriteengine, .?mywebsite.com, websites, ^http:, [f], ..jpe?g|gif|bmp|png$, vps, desktop, tested, remote, idea, [l], ^http://www.?website.com, .gif|jpg$, cache, block, images, codes, hotlinking, guys, hotlinks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.