.
i read that this on the htaccess page will work to prevent hotlinking....
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpe?g|png|bmp)$ [F,NC]
has anyone used it successfully ?
thaks
anti-hotlinking code on website ???
- bill
- Verified Member

- Posts: 8259
- Joined: February 3rd, 2018, 3:36 pm
- TheButcher
- Administrator

- Posts: 17517
- Joined: February 2nd, 2018, 11:48 am
- Title: I like weekends
- Referrals: 1
- Contact:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sponsorchat.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
Is what i use and it works
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sponsorchat.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
Is what i use and it works
- vblogger
- Verified Member

- Posts: 1935
- Joined: February 17th, 2018, 2:48 pm
-
fetishnews
- Verified Member

- Posts: 1336
- Joined: February 16th, 2018, 6:30 pm
You can block all image hotlinking and allow Google to link to them, so you get Google traffic b-t-w.
-
TerryLon
- Verified Member

- Posts: 165
- Joined: April 17th, 2018, 9:22 am
Not being too smart with codes my host made me one, I can post here if you like.
-
alsporn
- Verified Member

- Posts: 600
- Joined: May 12th, 2018, 4:35 pm
-
saucyadele
- Verified Member

- Posts: 559
- Joined: May 6th, 2018, 7:11 am
I have an extra line on my htaccess to allow Google to hot link them.
-
pornmafia
- Verified Member

- Posts: 1300
- Joined: March 4th, 2018, 12:14 pm
htaccess saves the day for me, I never allow my content to be hot-linked by an site I do not run.