 | |  | | | General Discussion General use discussion forum for PhotoPost products. |
August 28th, 2004, 12:10 PM
|
#1 (permalink)
| | Member
Join Date: Oct 2003 Location: uk
Posts: 61
| htaccess data directory security & what heppened to BotBuster?
Hi all! I have been having major problems locking down my installation of PhotoPost, and protecting it from all the hackers and leechers who are desperate to get to the movie file content.
I thought BotBuster would be the answer as PhotoPost seems to support it. However, I ordered BotBuster, waited 24 hours, waited another 24 hours, and nothing. Wrote them.... no reply. No charge on my credit card although I did receive a confirmation email after the billing process.
I have written to them several times, and never had a reply. I may try phoning them later, but.....
..... I was wondering if anyone knows what's going on? Where are they?
I really need a system like botbuster to protect my data directories. Does anyone know of a good alternative to limit unauthorised access to the data directory, and to block unwanted bots and downloaders?
I know I could use .htaccess and indeed I do, but I can't get that to work exactly as I want it to.... more about that later and in another thread though.
Thanks for now!
Last edited by SLix; August 28th, 2004 at 03:36 PM.
|
| |
August 28th, 2004, 12:57 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
htaccess works just fine for preventing hotlinking
You can use the admin feature of disabling right click to keep people from downloading movies.
|
| |
August 28th, 2004, 01:54 PM
|
#3 (permalink)
| | Member
Join Date: Oct 2003 Location: uk
Posts: 61
| Quote: |
Originally Posted by omegatron htaccess works just fine for preventing hotlinking
You can use the admin feature of disabling right click to keep people from downloading movies. | Hi Omegatron - I don't want to prevent my members from downloading the files. I want to stop non members from accessing them direct from the data directory. PhotoPost's anti leeching (no right click) will only stop members, and even then, will only stop them if they have javascript enabled.
My main problem is people posting the URLs of the files in the data directory on other sites, forums etc.
Although I have an htaccess file guarding the data directory from hotlinking, it does not block people who type the URL straight into their browser, or who use a download bot such as NetAnts, gozilla etc. Example 1 htaccess.
#########################################
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteRule .*\.(mpg|mpeg|mov|wav|mp3|avi|rm|ram|qt|ra|zip|aiff)$ http://www.domain.com [R,NC]
#########################################
If I set the htaccess file to block access from URLs typed direct into the user's browser, it prevents my members from being able to watch movies, or right click and use "Save target as....". Ecample 2 htaccess.
#########################################
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteRule .*\.(mpg|mpeg|mov|wav|mp3|avi|rm|ram|qt|ra|zip|aiff)$ http://www.domain.com [R,NC]
#########################################
("RewriteCond %{HTTP_REFERER} !^$" line removed)
There must be some way I can get around this limitation, and block all outside referes from the data directory, and leave my members free to view and download movies.
I have seen the subject of data directory security, and htaccess files a number of times on these forums, so I know I am not the only one having these problems. For me it's the hardest part to get right with PhotoPost. I have been trying sinse March when I installed it, and now, 5000 members later, it's approching 500GB transfer per month, and most of that is through theft!
For now, I have used the htaccess method 2 (above) which prevents anyone from downloading the movie files, and in my forums I have posted instruction on how to add files to favorites and download them as a zip file, but loads of members are having problems getting that to work, so that's not the answer either.
I hope to start charging for access to some areas of the gallery soon, so it's got to be made secure, yet user friendly for registered members.
|
| |
August 29th, 2004, 12:23 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Aug 2002
Posts: 182
|
Forget Botbuster. The guy promised more than he could deliver and took off with our money.
|
| |
September 1st, 2004, 08:25 AM
|
#5 (permalink)
| | Member
Join Date: Oct 2003 Location: uk
Posts: 61
| Quote: |
Originally Posted by Sola Forget Botbuster. The guy promised more than he could deliver and took off with our money. | Oh, no wonder I can't get any answers from them then. Bad lick! |
| |
October 1st, 2004, 07:23 PM
|
#6 (permalink)
| | Registered User
Join Date: Sep 2002
Posts: 40
|
I had a serious hotlinking issue where I was going through 400 GB in a day. People were hotlinking my multimedia files in a serious way. I was able to correct the problem and still allow people on the site to view them.
The code below assumes you are using Apache and have your data files structured like www.domain.com/data/
If a person requests a multimedia file, it checks for a valid referrer. If there is no referrer then it checks for the login cookie of ppid. Most players do not pass a referrer variable and that is why your previous attempt failed. This code will check for the login cookie and if a member is logged in, they can view the movie. Code: Content visible to verified customers only.
|
| |
October 1st, 2004, 11:55 PM
|
#7 (permalink)
| | Member
Join Date: Oct 2003 Location: uk
Posts: 61
|
Hey Derek, that is pretty much exactly what I have been looking for. However, I am getting a 500 server error when I use that in my htaccess for my domain and data path. Also my installation of PP is integrated with vB3, so what should I put for the cookie information?
thanks
|
| |
October 2nd, 2004, 09:48 AM
|
#8 (permalink)
| | Registered User
Join Date: Sep 2002
Posts: 40
|
I am not sure why you are receiving a 500 error. I am running Apache 2.0 on a Linux RHE3 dedicated server. Not sure if system versions or OS have anything to do with it. I am sure that this will work in your htaccess file however, I placed them in the httd.conf file for preformance reasons. Once you get it working their, you may want to consider that as well.
If you have intigrated with a forum script, you will need to change the cookie name of ppid to the cookie name that your forum writes after a member has logged in.
In my above example, I allowed images to have no referrer, my domain in the referrer or the login cookie. For multimedia files, you either have to have the referrer passed or have a cookie. I am not too concerned with a few people who cut and paste an image URL into a browser so an image shows up. Im my past experience the multimedia hotlinking was the real bandwidth eater.
Hope this helps.
|
| |
October 2nd, 2004, 10:58 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
RewriteCond %{HTTP_COOKIE} !^.*bbuser=.*$
FOR VB3 DEFAULT
Now as a side note the above will not work for everyone depending on what hosts allow or dissallow.
|
| |
October 2nd, 2004, 07:59 PM
|
#10 (permalink)
| | Member
Join Date: Oct 2003 Location: uk
Posts: 61
|
For some reason my server doesn't want to know. Even removing image files from this protection, it blocks all thumbs and full size images. Clicking on a movie link, produces a 500 error.
I am running apache on redhat, and my server uses cPanel/WHM.
What is the [F] directive?
I am just wondering about the: Code: Content visible to verified customers only.
I have other htaccess files on this site, including in the main html directory. This cookie htaccess file I am putting in the data directory it's self. Maybe that is causing some sort of conflict? Any advice would be very helpfull.
|
| |
October 2nd, 2004, 08:14 PM
|
#11 (permalink)
| | Registered User
Join Date: Sep 2002
Posts: 40
|
Here is some info on the tage:
[R] = Redirect the request to a new file. In this case it is going to return the hotlink.jpg
[L] = Stops the Rewrite process
[F] = Returns a Forbidden code 403, thus the little "x" from anyone trying to leach.
[NC] = no case
[OR] = switches to the next Rewrite Condition
Here is a detailed document for the other options: http://docs.rinet.ru/CP7/ch12.htm
Hope this helps.
|
| |
October 3rd, 2004, 11:03 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 292
|
Here is what I use... it serves up a "stolenimage.gif" image for for visitors of site that hotlink. I have two domain names that point to the same site, thus you see mydomain1|mydomain2. This is placed in the data directory Code: Content visible to verified customers only.
Last edited by HobbyTalk; October 3rd, 2004 at 11:05 AM.
|
| |
October 3rd, 2004, 11:07 AM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 292
|
As a note: anyone that uses any type of proxy server will not be able to view the images or files even if they are on your site. This included software such as Norton Internet Security and Zone Alarm.
|
| |
October 3rd, 2004, 11:14 AM
|
#14 (permalink)
| | Registered User
Join Date: Sep 2002
Posts: 40
|
Instead of sending a 403 Forbidden error to the end user, this would show the stolenimage.gif to them. It is a matter of choice on what the end result would be.
If customers use Norton Internet Security and Zone Alarm, those programs modify the referrer and that is why it will not work for them. They would need to enable referrer passing for your domains or make it pass a blank referrer. I have found that writing a help page describing the necessary changes in a step by step manner to cut way down on emails asking for help. Code: Content visible to verified customers only.
|
| |
October 3rd, 2004, 11:48 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
Usually as a result I like to make sure there is no bandwidth theft. I use this
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://reeftalk.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://reeftalk.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.reeftalk.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.reeftalk.com$ [NC]
RewriteRule .*\.(mpg|mpeg|mov|wav|mp3|avi|rm|ram|qt|ra|zip|aiff|jpg|jpeg|gif|png|bmp)$ - [F,NC]
Please note everything is personal preference. I just choose to show nothing as even showing a stolenimage.gif file while relatively small is bandwidth theft by your choice. Take search engines by choice. Your stolenimage.gif say is 5k and 2 million imagelinks and each of those links get one hit a month that still results 10000000kilobytes of transfer or 9.53674 gigabytes of bandwidth.
|
| |
October 6th, 2004, 10:15 PM
|
#16 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
|
So if you use a htaccess file at all are you saying that people that use Norton Internet Security or Zone Alarm will get image place holders over my entire gallery if they don't read a message that tells them how to fix it?
I am thinking of using a htaccess, but if that is the case I am more worried about using one, that simply getting more server bandwidth and let my watermarks do my advertising for me.
I don't want to make it a hassle for visitors that are support to be able to see the images, but if possible I want to block people that are stealing my bandwidth from post my images on their site or posting the data directory url so users can bypass my banners.
Can somebody help find out what the best solution for me?
Thanks.
|
| |
October 7th, 2004, 05:19 AM
|
#17 (permalink)
| | Member
Join Date: Oct 2003 Location: uk
Posts: 61
| Quote: |
Originally Posted by Johnny Doomo So if you use a htaccess file at all are you saying that people that use Norton Internet Security or Zone Alarm will get image place holders over my entire gallery if they don't read a message that tells them how to fix it?
I am thinking of using a htaccess, but if that is the case I am more worried about using one, that simply getting more server bandwidth and let my watermarks do my advertising for me.
I don't want to make it a hassle for visitors that are support to be able to see the images, but if possible I want to block people that are stealing my bandwidth from post my images on their site or posting the data directory url so users can bypass my banners.
Can somebody help find out what the best solution for me?
Thanks. | Users of Norton Internet Security, Zone Alarm, or anything else that blocks headers will be treated as an imposter by your htaccess/apache. BUT only if they have it setup to block headers. By default, they do, and most users don't even know it!
It may be a better idea to protect your whole photopost directory with htaccess, and have it redirect them to a page with simple instructions on how to setup their privacy software "properly".
|
| |
October 7th, 2004, 02:45 PM
|
#18 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
|
Would it only redirect people that has it setup incorrectly or would it redirect everybody? And if it only redirects those with it incorrectly setup, what happens if the image is linked from another one of my sites and somebody that has these programs tries to view the image? Wouldn't it just show them the stolen image and they would still have no clue that it was them and not the site?
Sounds like either way using these preventative processes, you still limit your users... no matter how small a % it may be. Is that a correct assumption?
I really don't want to show dead or stealing images to anybody that should be seeing the pic just fine.
|
| |
October 7th, 2004, 05:07 PM
|
#19 (permalink)
| | Member
Join Date: Oct 2003 Location: uk
Posts: 61
| Quote: |
Originally Posted by Johnny Doomo Would it only redirect people that has it setup incorrectly or would it redirect everybody? And if it only redirects those with it incorrectly setup, what happens if the image is linked from another one of my sites and somebody that has these programs tries to view the image? Wouldn't it just show them the stolen image and they would still have no clue that it was them and not the site?
Sounds like either way using these preventative processes, you still limit your users... no matter how small a % it may be. Is that a correct assumption?
I really don't want to show dead or stealing images to anybody that should be seeing the pic just fine. | You can setup any redirection you like, to any page you like, instead of showing a stolen image. You can add your other domains to the htaccess so that they will be valid referers.
Yes it will limit some of your visitors to some extent, but you may find that preferable to having your bandwidth stolen by other sites linking directly to your files!
Depending on your line of business, people using stupidly high security such as private headers etc, are not good for business, as they more than likely have cookie blockers too which may mean that you are not credited for affiliate sales, advertising revenue, or link exchanges. Further more they are probably also likely to have ad blockers running. So their value to you as a business, may be very limited. So maybe you shouldn't loose too much sleep over them.
|
| |
October 7th, 2004, 07:49 PM
|
#20 (permalink)
| | Senior Member
Join Date: Mar 2003
Posts: 854
|
OH! OK that helped me understand it a lot better. So which of the above, or can somebody post an htacess that will do what you say and allow multiple domains, and allow me to redirect with a message.
If there is a way to show the message to only those that are seeing the dead images that would be great so that I don't have to show the message to every user viewing my gallery.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:14 AM. | |