Picture uploading
- NIRc_uLtRaMaX_®
- Member
- Posts: 10
- Joined: Mon Oct 25, 2004 11:05 pm
- Location: South Dakota
- Contact:
Picture uploading
How do I upload pictures to mtm2.com for use in the forums but with a hyperlink?
Ex. http://mtm2.com/~forum/images/traxxmaxgstand.jpg
If someone could explain it, I will test it in the "Testing the Message Board" section.
Ex. http://mtm2.com/~forum/images/traxxmaxgstand.jpg
If someone could explain it, I will test it in the "Testing the Message Board" section.
Currently, there is no public image uploader. There used to be, once upon a time, but it was subject to much abuse. I know far more than before and can stop a lot of the problems, but I can't stop everything. And I'm pretty sure several others, both of this site and of others, would like to see these difficulties overcome. But unfettered wholesale uploading just isn't feasible. So, I'm willing to entertain ideas and suggestions if anybody has any.
I'm not sure there's a way to do it without it getting abused, Phin. We used to have a public uploader, but before long people were using it for illicit pictures of all sorts and other things that went against the grain of its intended purpose. So we closed it off and made it a "SLO" only accessory.
I think most people have other avenues available for uploading their own pics nowadays. Max, I'm guessing you want a pic or pictures uploaded for a beta track. If so, just send em over and I'll hook you up, bud
.
I think most people have other avenues available for uploading their own pics nowadays. Max, I'm guessing you want a pic or pictures uploaded for a beta track. If so, just send em over and I'll hook you up, bud
- NIRc_uLtRaMaX_®
- Member
- Posts: 10
- Joined: Mon Oct 25, 2004 11:05 pm
- Location: South Dakota
- Contact:
- NIRc_uLtRaMaX_®
- Member
- Posts: 10
- Joined: Mon Oct 25, 2004 11:05 pm
- Location: South Dakota
- Contact:
What I do to allow pic uploads on vales.com is rename the extention on save regardless of the inital file upload, and then block all display of the image via that unique extention if the reffer tag does not says vales.com
e.g. a Forum Pic uploaad gets .FP (for Forum Post) added to the end of it.
So myPic.jpg would be saved as myPic.jpg.FP
My html tags call the pic with that name, and display it fine.
Once you can rename the upload, you can set server rules for their access and not effect toher images (or files of any type) you might want outside acces to, like my sig image from my server.
It's a gif image, which I don't block, but you can't upload a .gif image on my site and display it here, it gets renamed on upload.
I am on an NT server, so I use aspSmart to get the UL and rename it, andISAPI/ReWrite to do the checking for file calls.
For a Unix box like this, the .htaccess? file (can't recall the name of the file) allows for Per rules like:
If it is call to an .FP file
then
if the call is from this web site serve it up.
else don't.
end if
Just find a way for your perl UL routine to modify the UL name and your set.
e.g. a Forum Pic uploaad gets .FP (for Forum Post) added to the end of it.
So myPic.jpg would be saved as myPic.jpg.FP
My html tags call the pic with that name, and display it fine.
Once you can rename the upload, you can set server rules for their access and not effect toher images (or files of any type) you might want outside acces to, like my sig image from my server.
It's a gif image, which I don't block, but you can't upload a .gif image on my site and display it here, it gets renamed on upload.
I am on an NT server, so I use aspSmart to get the UL and rename it, andISAPI/ReWrite to do the checking for file calls.
For a Unix box like this, the .htaccess? file (can't recall the name of the file) allows for Per rules like:
If it is call to an .FP file
then
if the call is from this web site serve it up.
else don't.
end if
Just find a way for your perl UL routine to modify the UL name and your set.
<IMG SRC="http://vales.com/sigs/KC.gif" border=0>
It's all how you look at things ©¿©¬
It's all how you look at things ©¿©¬
Howdy stranger :-)
>> So myPic.jpg would be saved as myPic.jpg.FP
Man, I always wondered what that FP stood for, lol Forum pic.
> For a Unix box like this, the .htaccess?
Yes, that's exactly it. And I've used it before too but not for a long while. For example, I just had a quick look and found three different methods. I'll have to test to see which works best.
> Just find a way for your perl UL routine to modify the UL name and your set.
Perl has the best string handling functions of any scripting or programming language. And it allows a ton of other stuff to be done too. One of my biggest concerns is not so much the scripting but that this is a low-ish traffic, zero mod forum, and I'd sure like to keep it that way.
PS. FYI, a few people are using your vales gaming site to hot link images.
>> So myPic.jpg would be saved as myPic.jpg.FP
Man, I always wondered what that FP stood for, lol Forum pic.
> For a Unix box like this, the .htaccess?
Yes, that's exactly it. And I've used it before too but not for a long while. For example, I just had a quick look and found three different methods. I'll have to test to see which works best.
Code: Select all
SetEnvIfNoCase Referer "^http://forum.mtm2.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://forum.mtm2.com$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>
Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} .*jpg$|.*gif$|.*png$ [NC]
RewriteCond %{HTTP_REFERER} ^[http|nttp].*$
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !forum\.mtm2\.com [NC]
RewriteRule \.(jpg|gif|png)$ - [F]
Code: Select all
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://forum.mtm2.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]
> Just find a way for your perl UL routine to modify the UL name and your set.
Perl has the best string handling functions of any scripting or programming language. And it allows a ton of other stuff to be done too. One of my biggest concerns is not so much the scripting but that this is a low-ish traffic, zero mod forum, and I'd sure like to keep it that way.
PS. FYI, a few people are using your vales gaming site to hot link images.