hi
how can i prevent some zip files from being hotlinked and downloaded from other sites, rather than directly from my site?
thank you!
how can i do this on my website?
- bill
- Verified Member

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

- Posts: 17526
- Joined: February 2nd, 2018, 11:48 am
- Title: I like weekends
- Referrals: 1
- Contact:
Morning bIll add this to your htaccess file
Replace "your-domain.com" with your specific domain.
Code: Select all
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)your-domain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf)$ - [F]Replace "your-domain.com" with your specific domain.
- bill
- Verified Member

- Posts: 8259
- Joined: February 3rd, 2018, 3:36 pm
i did not know that zips could be included for htaccess
thanks
thanks
- cimage
- Verified Member

- Posts: 1592
- Joined: June 3rd, 2018, 2:36 pm
- Title: living the good life
htacess is such a wonderful file on the server.
Stop looking for reps if they don't care why waste your time and traffic at their program, fuck that.
~ cimage 2024
~ cimage 2024
-
bucksm
- Verified Member

- Posts: 780
- Joined: February 19th, 2018, 7:23 pm
It sure is one small page of code that gets a lot accomplished
-
JPDomains
- Verified Member

- Posts: 466
- Joined: March 12th, 2018, 7:28 pm
For the size of it nothing else counts