php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#242776 - 04/15/03 03:56 PM Protect Images with .htaccess
chillin Offline
Journeyman

Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
just had a bunch of people stealing bandwidth by using graemlins from our server. this is basic, but worth posting: <br /> <br />how to block stealing of .gif and .jpg using .htaccess: <br /> <br />
Code:
 <br />RewriteEngine on <br />RewriteCond %{HTTP_REFERER} !^$ <br />RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite.com/.*$ [NC] <br />RewriteRule \.(gif|jpg)$ - [F] <br />
<br /> <br />if you place this in the root of your public http directory it will protect all images on your site.
_________________________
i see threads people
http://www.chinooktc.com

Top
#242777 - 04/15/03 05:37 PM Re: Protect Images with .htaccess [Re: kwalenta]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
An excellent resource. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Thanks. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#242778 - 04/15/03 05:38 PM Re: Protect Images with .htaccess [Re: kwalenta]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
The question is... Will it work on Windows?<br /><br />As far as I know windows does not allow files without a name hence the .htaccess is not a valid filename... <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />Thanks for sharing chillin
_________________________
Nikos

Top
#242779 - 04/15/03 06:20 PM Re: Protect Images with .htaccess [Re: Hal_dup2]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
It works on windows, but you need an apache. <br />But using the rewrite engine can cause problems on high traffic sites. It increases the load of the server and the overhead of every request. <br /> <br />There are some other ways to prevent the direct linking to images. <br />For example using a php script that looks for a valid session before displaying the image.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#242780 - 04/15/03 06:25 PM Re: Protect Images with .htaccess [Re: -Fusion-]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
I am using apache and I am lazy to write the script LOL. It would be a bummer to try and hack photopost so that every image display checks for the session id.<br /><br />I was wondering if you can change the .htaccess file name to make it something like access.htaccess so that it becomes a valid windows file name.
_________________________
Nikos

Top
#242781 - 04/15/03 06:29 PM Re: Protect Images with .htaccess [Re: Hal_dup2]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Sure:<br /><br /> []AccessFileName directive<br />Syntax: AccessFileName filename [filename] ...<br />Default: AccessFileName .htaccess<br />Context: server config, virtual host<br />Status: core<br />Compatibility: AccessFileName can accept more than one filename only in Apache 1.3 and later<br /><br />When returning a document to the client the server looks for the first existing access control file from this list of names in every directory of the path to the document, if access control files are enabled for that directory. For example:<br /><br /> AccessFileName .acl <br /><br />before returning the document /usr/local/web/index.html, the server will read /.acl, /usr/.acl, /usr/local/.acl and /usr/local/web/.acl for directives, unless they have been disabled with<br /><br /> <Directory /><br /> AllowOverride None<br /> </Directory> [/]
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#242782 - 04/15/03 07:23 PM Re: Protect Images with .htaccess [Re: -Fusion-]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
RewriteCond %{HTTP_REFERER} !^$<br /><br />Get rid of that line. It will cause you no end of heartache and headache.<br /><br />Leterally it's making one of the matching conditions : no referrer.<br /><br />So, if I open my browser, click my bookmark to your site I get no referrer, thus no images. If I hit refresh the same thing happens. Usually at that point I've left your site, but If I haven't left your site after that and actually clicked a link now I have your site as a referrer and I'll get pictures. But.. that ain't gonna happen because after the first time I refreshed if I had no pictures I left.<br /><br />Besids, if anybody is linking to your pictures there would be a referrer.<br /><br />You also missed GIF JPG PNG and png.<br /><br />If you have downloads you'll also want to add .exe and .zip.<br /><br />
_________________________
Picture perfect penmanship here.

Top
#242783 - 04/15/03 07:27 PM Re: Protect Images with .htaccess [Re: zerind]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
Nikos, Windows will allow an .htaccess file. You just can't make one with notepad or try to rename a file to .htaccess. (edit - wrong, see below) <br /> <br />I open a file with UltraEdit32, put in what I need, save as .htaccess and it works fine. Notepad will make it .htaccess.txt if it even does anything. <br /> <br />You might be able to get away with setting notepad to save file type all files then for the file name surround it in quotes. ".htaccess" <br /> <br /> <br />. <br /> <br /> <br />. <br /> <br />yup, just tried it. that works. I have an .htaccess on my desktop doing it just that way.


Edited by navaho (04/15/03 07:28 PM)
_________________________
Picture perfect penmanship here.

Top
#242784 - 04/15/03 11:29 PM Re: Protect Images with .htaccess [Re: zerind]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
I'm able to write a .htaccess file in Notepad if I save it as a text file (for example, I can call it Bob.txt), but then rename it after I upload it to my server.

Top
#242785 - 04/15/03 11:31 PM Re: Protect Images with .htaccess [Re: jbiz]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Who's Bob? <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#242786 - 04/16/03 01:47 AM Re: Protect Images with .htaccess [Re: Daine]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
[]JoshPet said:<br />Who's Bob? <img src="/forum/images/graemlins/grin.gif" alt="" /> [/]<br /><br />My goldfish. He's so smart, he can say his own name!

Top
#242787 - 04/16/03 01:49 AM Re: Protect Images with .htaccess [Re: jbiz]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
he he<br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#242788 - 04/16/03 03:47 AM Re: Protect Images with .htaccess [Re: zerind]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
I tried that Dave but it didn't work. Windows 2000 did not allow the file to be renamed. Since I don't have Ultraedit I followed coy7's advice and it worked just fine.<br /><br />However when I put up a link up in a browser (I haven't logged in on my forum or anything like that) it will start bringing up an image.<br /><br />There I go for the investigation. I found out that the Rewrite modules were commented out. So I uncommented the .so and the .c rewrites on my apache conf file and restarted the server. Unfortunately I could still hook up with the file <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />Any ideas?
_________________________
Nikos

Top
#242789 - 04/16/03 08:49 AM Re: Protect Images with .htaccess [Re: Hal_dup2]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
Does anyone have the code to add to the directive to allow some referrers through?? We have a site or two that we share images with, and I'd like to use this, but need to be able to allow them.<br /><br />Cheers,<br /><br />Chris
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242790 - 04/16/03 04:37 PM Re: Protect Images with .htaccess [Re: ]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
"However when I put up a link up in a browser (I haven't logged in on my forum or anything like that) it will start bringing up an image." <br /> <br />No Referrer. I mentioned that. Try linking the image from a different website and see what happens. Make a post here in the test forum with a linked image. that will be a better test. <br /> <br />Raconteur, you want to allow certain sites to link? Add them to the exceptions conditions <br /> <br />RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite.com/.*$ [NC] <br />RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourothersite.com/.*$ [NC] <br />RewriteCond %{HTTP_REFERER} !^http://(www\.)?anothergoodsite.com/.*$ [NC]


Edited by navaho (04/16/03 04:39 PM)
_________________________
Picture perfect penmanship here.

Top
#242791 - 04/16/03 04:51 PM Re: Protect Images with .htaccess [Re: zerind]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
Thanks Navajo!! Is there an online reference that divulges the meaning of the codes for this thing?? Like what does [NC] mean, and [F], etc...
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242792 - 04/16/03 04:54 PM Re: Protect Images with .htaccess [Re: ]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
Ack... spoke too soon...<br /><br />Here is what I have:<br /><br />
Code:
<br />RewriteEngine on<br />RewriteCond %{HTTP_REFERER} !^http://(www\.)?syngnathid.org/.*$ [NC]<br />RewriteCond %{HTTP_REFERER} !^http://(www\.)?threadsdev.com/.*$ [NC] <br />RewriteRule \.(gif|jpg|png|exe|zip|GIF|JPG|PNG|EXE|ZIP)$ - [F]<br />
<br /><br />And MOST of my images on my own site are not coming up... some do however...<br /><br />My avatar here is linked from an image on our site and it seems fine, though...
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242793 - 04/16/03 05:12 PM Re: Protect Images with .htaccess [Re: ]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
I haven't seen any really good down to earth guides for mod rewrite.<br /><br />Here is the rewrite guide from apache.org<br />http://httpd.apache.org/docs/misc/rewriteguide.html<br /><br />and the reference documentation<br />http://httpd.apache.org/docs/mod/mod_rewrite.html<br /><br />The top one tells you what the [R] [L], and [NC] notations are If I recall. If not then it is in the second.<br />
_________________________
Picture perfect penmanship here.

Top
#242794 - 04/16/03 05:15 PM Re: Protect Images with .htaccess [Re: zerind]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
Thanks. Any idea why images are not showing up for me?
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242795 - 04/16/03 06:46 PM Re: Protect Images with .htaccess [Re: ]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
http://www.hotlinking.com/ <br /> <br />That site lets you test whether or not your .htaccess files are working to protect images on your site. I had to employ it today as a check of my stats revealed that a Star Trek message board, of all things, was hotlinking to my graemlins! Aren't those people geeky enough to want their own graemlins?

Top
#242796 - 04/16/03 07:05 PM Re: Protect Images with .htaccess [Re: jbiz]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
Hey... shouldn't this:<br /><br />
Code:
<br />order allow,deny<br />deny from 10.<br />allow from all<br />
<br /><br />prevent someone from 10.X.X.X from accessing our site?? I keep getting these morons from a competing site with no content pilfering our intellectual property by logging in as anonymized guests.<br /><br />I have my .htaccess file in the root of our site, with that code and nothing else but I am seeing a user with IP 10.1.1.6 online right now...
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242797 - 04/17/03 07:29 PM Re: Protect Images with .htaccess [Re: ]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
a 10. number? <br /> <br />that's a nonroutable number. are you quite sure that your own server doesn't have an internel 10. Ip address, or one on your network? <br /> <br />the 10 range is the same as the 192.168 range, it's nonroutable.


Edited by navaho (04/17/03 07:29 PM)
_________________________
Picture perfect penmanship here.

Top
#242798 - 04/18/03 09:27 AM Re: Protect Images with .htaccess [Re: zerind]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
10.x.x.x is in the I.A.N.A. according to http://ws.arin.net/cgi-bin/whois.pl<br /><br />We are getting hits from folks that we know who are who are using black hole generating web-sites to get to us. I put a ban on 10.%.%.% but was still seeing them on our site... especially in our Library (where most of our intellectual content resides), and realized two things:<br /><br />1) I had not added the ban check code to the library access files.<br /><br />2) The ban check code (I think it is from Josh's "Better Ban Mod") had a bug where it was checking for a user id OR an IP. Guests get an ID of zero, so if there was another guest on the site at the same time this person was the result from the query returned more than one row, and the code was only looking at the first one.<br /><br />So I fixed both, and now it is just a waiting game to see if they show up again.<br /><br />I was hoping to block in a more authoritative and decisive fashion using .htaccess or something similar... if that won't work, do you have any suggestions??<br /><br />Thanks!<br /><br />Chris
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242799 - 04/18/03 11:20 AM Re: Protect Images with .htaccess [Re: zerind]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
I've been using this on my site, but my replacement image does not work. This would be an image that shows instead of the image requested. Here is my code:<br /><br />
Code:
<br />RewriteEngine on<br />RewriteCond %{HTTP_REFERER} !^$<br />RewriteCond %{HTTP_REFERER} !^http://(www\.)?drumlines.org/.*$ [NC]<br />RewriteRule \.(gif|jpg)$ http://www.drumlines.org/images/hotlink.gif [R,L]<br />
<br /><br />As you can see below, it does not work....<br /><br />[]http://www.drumlines.org/mural.jpg[/]<br /><br />Yes, the URL is correct! <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#242800 - 04/21/03 02:20 PM Re: Protect Images with .htaccess [Re: eslmix]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
Of course it doesn't work. Look at what it does.<br /><br />replace every gif in / and any directory under it with hotlink.gif if there is no refferer or the referrer is not drumlines.org.<br /><br />hotlink.gif IS A GIF! <img src="/forum/images/graemlins/doah.gif" alt="" /><br />
_________________________
Picture perfect penmanship here.

Top
#242801 - 04/21/03 02:26 PM Re: Protect Images with .htaccess [Re: zerind]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
LOL<br /><img src="/forum/images/graemlins/doah.gif" alt="" /><br />That made me laugh navaho. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#242802 - 04/21/03 02:32 PM Re: Protect Images with .htaccess [Re: Daine]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
<img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Picture perfect penmanship here.

Top
#242803 - 04/21/03 05:46 PM Re: Protect Images with .htaccess [Re: zerind]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
For some reason my rewrite rules don't work at all. <br /><br />I have Apache 2 and I have enabled the loadmodule rewrite.so.<br /><br />My .htaccess file is located at the root of the web site (which is my understanding that will "protect" all the rest of the subfolders) and it is:<br /><br />RewriteEngine on<br />RewriteCond %{HTTP_REFERER} !^$<br />RewriteCond %{HTTP_REFERER} !^http://www.schuey.de/.*$ [NC]<br />RewriteCond %{HTTP_REFERER} !^http://ffff.niden.net/.*$ [NC]<br />RewriteRule \.(gif|jpg|zip|png|jpeg|wmv|mpg|GIF|JPG|ZIP|PNG|JPEG|WMV|MPG)$ - [F]<br /><br />Now I tried it with the RewriteCond %{HTTP_REFERER} !^$ and without it and it doesn't work <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />Any ideas?<br />
_________________________
Nikos

Top
#242804 - 04/21/03 07:23 PM Re: Protect Images with .htaccess [Re: zerind]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
I figured it was something like that, but thought that the last line was supposed to override the rule. There is a way, right? So how is it done?
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#242805 - 04/21/03 07:30 PM Re: Protect Images with .htaccess [Re: eslmix]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
Substitue a png if you use no other png files on the site. Or point to a hotlink.gif on another site that you own (a subdomain JUST for a hotlink image maybe?). Or, better yet subsitute no image at all "-" . Why use your bandwidth serving hotlink.gif? The object of the exercise is to save your bandwidth dollars that hotlinkers are costing, right? So give them no image <img src="/forum/images/graemlins/smile.gif" alt="" />


Edited by navaho (04/21/03 07:31 PM)
_________________________
Picture perfect penmanship here.

Top
#242806 - 04/21/03 07:37 PM Re: Protect Images with .htaccess [Re: zerind]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yeah, I need to re-enable it before all my gallery content flies out the window.... I just used to serve the broken image. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#242807 - 04/22/03 02:35 AM Re: Protect Images with .htaccess [Re: Daine]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
Hey Navajo,<br /><br />Can you give me some guidance with this 10.x.x.x problem... it is really plaguing me... I have code in the ban_check function now to specifically look for this particular 10. IP address that keeps hitting our site, but I am still seeing the person in our Library.<br /><br />Is there no way to use .htaccess to prevent this?? If not, any other solutions??<br /><br />Thanks!<br /><br />
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242808 - 04/22/03 12:14 PM Re: Protect Images with .htaccess [Re: ]
navaho Offline
Veteran

Registered: 10/05/00
Posts: 2518
Loc: navahoville! :D
I'll try, but it will be later today before I can get to it.
_________________________
Picture perfect penmanship here.

Top
#242809 - 04/22/03 01:31 PM Re: Protect Images with .htaccess [Re: zerind]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
Thanks a ton!
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242810 - 04/22/03 05:42 PM Re: Protect Images with .htaccess [Re: ]
Raconteur_dup1 Offline
Member

Registered: 01/29/03
Posts: 258
Loc: SF, CA
Alright, after battling back and forth over this with our host, I have gotten some information... however, I am not sure how accurate it is. Can someone help me verify this stuff?<br /><br />[]<br />Hello,<br /><br /> It is much more likely to be a bug in your application where a http connection<br />is being initiated to itself. This is the only possible cause for an internal<br />server farm IP to appear in the CGI Environment. <br /> <br /><br />Let me know if I can help you further.<br /><br />Regards,<br /><br />Paul Trebilco.<br />[/]<br /><br />My response with his comments interspersed:<br />[]<br />Hello,<br /><br /> <br />"Christopher Burns" <chris@syngnathid.org> wrote:<br /><br />--Start Snip--<br /><br />> Hi Paul,<br />> <br />> Not sure I follow. If I go through Anonymizer.com or use any of the<br />> existing softwares out there to hide my IP, it seems the spoofing my IP to<br />> 10.x.x.x would be the way to go, wouldn't it?<br /><br />Except that 10.x.x.x is a non routing IP, the replies would never ever ever get<br />back out past our router. 10.1.1.6 is the internal access address of our server<br />farm. If you see that address in the logs then it means your application has<br />connected to itself. ie and fopen command was initiated to the resident website.<br />There are any number of reasons why this may occur. Most likely if your app uses<br />templates then it may fopen to itself. It's not ideal but I do see some forum<br />software using the method.<br /><br />> <br />> When you say it is more likely a bug in the app where an http connection is<br />> being initiated to itself, can you give me an example of that situation? I<br />> cannot think of anywhere on our site (as I understand what you are saying)<br />> that this could be the case... but, alas, I am admittedly ignorant here.<br />> <br /><br />Did you not submit a support request not so long ago RE a PHP fopen function?<br />Perfect example right there.<br /><br />> The offending IP seems to isolate to one specific area of our site, the<br />> Library. Is there any sort of server logs you guys keep that would show<br />> someone with the IP 10.1.1.6 accessing our site and what they are doing?<br /><br /> Give me specific dates. But like we keep telling you, that ip is a legitimate<br />ip of our webfarm. Quite a few customer forums see that ip in request logs.<br />It does not reverse resolve to any host name because it is a private address.<br />Our private address.<br /><br />> <br />> Thanks,<br />> <br />> Chris<br />[/]<br /><br />My response:<br />[]<br />Hi Paul,<br /><br />Ok... so you are saying that is someone attaches to our site with the IP 10.1.1.6 they won't be able to view anything?? This person is obviously navigating to a specific place on our site. Now, granted I have not caught him at any time other than being in the Library, so I do not know if there actually was a trail that he followed. IF he just appeared in there, then I can definitely see what you are saying.<br /><br />The fopen issue was being use to test valid URLs for our links gallery, and they would not be accessing our own site.<br /><br />The latest hit we got was on 4/21/03 at 8:48pm (Pacific Standard Time). Also on 04/18/03 10:55pm (Central Standard Time). Then again at 04/18/03 08:58pm (S. Australia Time). Our first notice was on 03/31/03 07:25pm (Pacific Standard Time).<br /><br />Hope those help! It sounds like we may be over-reacting to some coincidental stimulus, and your inherent operations... is that true?<br /><br />Cheers,<br /><br />Chris<br />[/]<br /><br />His response:<br />[]<br />Hello,<br /><br />Here is a log entry for 1 particular occurance I found in the server logs.<br /><br />10.1.1.6 sr - [22/Apr/2003:22:58:18 +1000] www.syngnathid.org 80 "GET<br />/ubbthreads/articlesLibrary.php HTTP/1.0" 200 6812 "-" "PHP/4.2.3" "-" syngnathids<br /><br />The Ip address and the User agent (PHP/4.2.3) definitely point to a php fopen<br />command originating on the webfarm.<br /><br />A quick serach of your home directory reveals this;<br /><br /><br /> index.php: include<br />"http://www.syngnathid.org/ubbthreads/articlesLibrary.php";<br />index.php: include<br />"http://www.syngnathid.org/ubbthreads/articlesLibrary.php";<br />templates/default/ubbt_registerednav.tmpl:<a href =<br />"$phpurl/articlesLibrary.php" $target>{$ubbt_lang['LIBRARY']}</a><br /><br />I'm pretty sure the include statements in your index.php page are invoking the<br />php fopen subclasses.<br /><br />Let me know if I can help you further.<br /><br />Regards,<br /><br />Paul Trebilco.<br />[/]<br /><br />My response:<br />[]<br />Hi Paul,<br /><br />So would that not say that if I were to go login as myself, and the view articles in the library, we should see the 10.1.1.6 IP address popup in our Who's Online and your logs?<br /><br />It seems that for the most part this IP is in there with other more natural IPs, but I do seem to recall seeing it in the Library all alone on more than one occasion...<br /><br />Let me know, and maybe we can try to test this.<br /><br />Cheers,<br /><br />Chris<br />[/]<br /><br />Their latest comment (this one sounds fishy to me):<br />[]<br /><br />As Paul mentioned, the presence of that IP can only be originating from an internal call within your script because 10.X IP ranges are only routable to our internal network and not to the outside. You do not need to worry about it.<br /><br />Regards,<br /><br />Martial Herbaut.<br />[/]<br /><br />I know you can go through an anonymizing portal that will wipe your real IP and give you a bogus one, along the lines of 10.x.x.x So for them to say that the user with that IP is being generated by internal systems doesn't sound kosher to me.<br /><br />On top of that, if I go in to the Library and poke around, I can watch the Online table and see that no user with IP 10.1.1.6 EVER shows up...<br /><br />So, I guess I am looking for the truth of the matter here... can anyone edify me? Please?!?!!?<br />
_________________________
"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous

Top
#242811 - 04/23/03 04:58 AM Re: Protect Images with .htaccess [Re: ]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
I agree with Paul.<br />It seems like your aricleLibrary.php scripts inserts the values in your w3t_online so that they show up.<br />I think it uses the user-information from the index.php file. The ip is 10.x.x.x cause of the fopen, like paul said.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#242812 - 04/23/03 09:37 AM