How To Hotlink Images In Forum
Dec 4, 2008How to hotlink images in forum?
View 2 RepliesHow to hotlink images in forum?
View 2 Repliesi have Suhosin installed on my server now some of my sites are facing problem i.e forums like ipb , vbulliten ,phpbb3 with the images on the forum are not displaying properly..
So is this problem related to the values of these two fields present in Suhosin
suhosin.post.max_value_length =
suhosin.request.max_value_length =
is Suhosin good for shared servers?
I use .htaccess to protect hotlinking of photos on one of my sites and it works well. I am having a problem with a myspace kid. About a year ago he tried to hotlink to a photo on my site but screwed up the html so its looking for a file that isn't there.
In the beginning I figure he would fix it, hasn't happened. I sent him a message asking him to fix it, he hasn't.
Im tired of his myspace traffic showing up in my error logs.
The file name his site is looking for is PeterForsberg.jpg%3E%3C/img%3E%3C/td%3E%3C/tr%3E%3Cscript%20language=
I dont know how to format an entry into .htaccess to get his screwed up code to display my hotlink image.
I have got the problem that before 3 days some body who's site traffic is very high hotlink some images from my site which cause my server memory and bandwidth using too much due to that my server not working properly and extreme slow.
I have then immediately protect the Hotlink after that my bandwidth is not using more but the images which he has hotlink their request are coming too much and continued and my server still busy on that request and due to that server memory is still using too much.
I have checked it from top command and cpanel and apache status here I have found that Nobody user are hitting too much and using my server memory on alarming stage in cpanel CPU/Memory/MySQL Usage shows nobody used +90% memory. I have also checked it on top command nobody user PID and I have match it with the apache status from cpanel then I have come to know that the request are coming from same site for hotlink images and these are using my server memory too much.
I have also block that site from htaccess but still these requesting coming continually.
Now my bandwidth is using normally but memory is still using very +80% much after doing all these action mentioned above. So, kindly tell me how can I block the requests coming from the site who hotlink images so that I can control my server memory to normal position.
Following are my top command and server information.
Intel(R) Xeon(R) CPU 1.86GHz with 1 GB Ram
WHM 11.23.2 cPanel 11.23.4
CENTOS Enterprise 5.2 i686
Server Version: Apache/2.0.63
Php 5.2
msql 4.1
top - 19:19:18 up 1 day, 4:13, 1 user, load average: 0.11, 0.33, 0.34
Tasks: 557 total, 2 running, 555 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.6%us, 0.5%sy, 0.0%ni, 94.2%id, 0.7%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1033788k total, 1010136k used, 23652k free, 17328k buffers
Swap: 2096472k total, 139776k used, 1956696k free, 276248k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2457 mysql 17 0 294m 138m 2356 S 1 13.7 59:40.07 mysqld
10772 nobody 15 0 36136 19m 3836 S 0 1.9 0:00.85 httpd
10787 nobody 15 0 36120 19m 3824 S 0 1.9 0:00.92 httpd
11346 nobody 18 0 36244 19m 3788 S 0 1.9 0:00.65 httpd ....
Is there a way to enable hotlink protection so that when I edit a page from my computer the pictures from the server display from my server but my site is still protected from other hotlinking. My intent is to make it easier for someone to edit there page.(i know I could just reupload image files but I was trying to think of a way to make it easier for someone else) I thought adding my ip address to the cpanel hotlink protection enabler would do the trick but it hasn't.
View 4 Replies View RelatedDoes anyone have experiences with using 1and1 shared servers as a hotlink host?
I see they have a $4.99 plan that includes 120GB diskspace and 1200GB bandwidth.
To rehash my other thread (http://www.webhostingtalk.com/showthread.php?t=766602), I'm looking for a separate hosting account to store/hotlink some FLV files that will be used by my client's websites on other servers.
For those of you with experience with 1and1:
How much bandwidth/diskspace did you use?
Did your account ever get suspended for resource/bandwidth usage?
If so, how much were you using of what you were supposedly promised?
What was the performance of their shared servers?
Did you ever have a problem with downloads timing-out?
Look, I'm under no illusion that any company is going to let me use $100 worth of bandwidth for only $5 a month, but I'm not looking to use the whole 1200GB.
At most, I could see myself using less than half (~500GB) of what is offered in their package.
So from those with the experience, what is the verdict on using 1and1 in this manner?
I have a plesk panel and i had a look for hotlink protection but unfortunately couldn`t find the proper option.
I guess there is a hotlink protection at windows version of plesk but not at linux one. I have a linux server.
Also i have a question about hotlinks also, one of my customer has a site that it uses too much bandwith like 600 gb at a month. It is an education related site and site is html.
And i am having some high load issues. When i check apache-status it shows %90 of the connections for that site. But i cant be sure that if it site really makes high load on server because like i told site is html. Also would like to know if server get s load for example if visitor wants to download something from site.
Because visitors are usually downloading zip, mp3 and those kind of files and i dont know if that many download cause the high load.
Also will it reduce the load of the server if i put hotlink protection to that site because of chance for other sites to leech files from this site?
Edit : If there isn`t any option for hotlink protection at Plesk panel how can i enable hotlink protection. Maybe using htaccess, but i would be glad if you can provide hotlink protection code also
Does anybody know which rules should be used to allow hotlinking of files with *_thumb* in their file name and block hotlink of all other files?
View 2 Replies View RelatedOne of the sites at my server is using over resource and causing slowdown to other sites. Because even i am still waiting for my in/out traffic graph, i guess leechers are giving link to those files from other websites and directly downloading from my server.
As a result, site is using around 1.5 tb of bandwith. It was not a big issue before but now server connection is 10 mbps, it was 100 mbps at old server.
So we have 2 options at this point, upgrading connection or activating hotlink for files.
But i don´t really know how to protect .zip and .rar files being downloaded from other sites by direct link to file. I tried hot link protection at cpanel. It is working well for image files, but when i add zip and rar files to protection list, nothing changed. I can still download the file by clicking direct link from other site.
does anyone on this forum know how to do a referral check to prevent hot linking to files that are on a nginx server? There is this regex code you use but I don't know how to put it together. how to do it on nginx using their rewrite module?
View 12 Replies View Relatedif anyone knows a script that is url rewrite mods that can fix this hotlink issue by having the link url change every 20 minute.
View 2 Replies View RelatedI found someone can use the following script. But I dont know where to put those script. Is it in htaccess like apache?
$HTTP["referer"] !~ "^($|[url]
$HTTP["referer"] !~ "^($|[url]
url.redirect = (
"(/.*.(JPG|jpe?g|png|gif))$" => [url]
}
}
The proxy script I've got installed has been playing up and now it shows something like this
I was playing with some hotlink protection settings etc which I cant fix now.
Anyone know how to get this fixed?
I can run exactly the same script under a different account on the same VPS without any issues.
i tried to create .htaccess file to protect hotlinking ; it's worked perfect with Firefox but can't work with IE. Here's my .htaccess file:
Code:
RewriteEngine on
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName domain.com
AuthUserFile www est.htpasswd
RewriteCond %{HTTP_REFERER} !^[url] [NC]
RewriteCond %{HTTP_REFERER} !^[url] [NC]
RewriteCond %{HTTP_REFERER} !^[url] [NC]
RewriteCond %{HTTP_REFERER} !^[url] [NC]
RewriteRule .*.(jpg|jpeg|gif|png|zip)$ [url] [R,NC]
If using Firefox and download a .zip file from my site it'll work but if use Internet Explore it'll only download redirect html file instead.
I am setting up the HotLinking access in cPanel for one of my accounts and don't understand the wording of this section.
It first has the list where you put in the domains that you want to allow hotlinking for.
Then below that it has an input that says, "Extensions to allow:". For this input, does that mean extensions to allow for EVERYONE, or just the domains listed in the section above?
You think they'd be clearer on that in the documentation, but they aren't. Help on this is greatly appreciated.
Has any body had experience with the different solutions available for protection your video/audio stream hosted on windows media server. We are planning on launching Media hosting services and are currently considering Video quota to protect clients streams. If there is any other solution,
View 2 Replies View RelatedI'm trying to do is wget images, however, i'm not sure how to do it 100% right...
what ive got is a index.html page that has images(thmubs) that link to the full size images. how do i grab the full size images?
Example of links on the page:
<a href="images/*random numbers*.jpg" target="_blank"><img border=0 width=112 height=150 src="images/tn_*random numbers*.jpg" style="position:relative;left:3px;top:3px" /></a>
i tried
wget -A.jpg -r -l1 -np URLHERE
Has anyone here gotten any of the Xen images from jailtime.org to work on CentOS? I've figured out what the heck I'm doing since my last question [url], but they still won't boot. And the more I Google it, the more people I find asking the same questions.
It looks like they're depending on a bunch of non-standard images in their initrd, and, unless we have some of these unknown modules, the darned thing won't boot. Mine ends up failing like this:
Code:
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
XENBUS: Device with no driver: device/vbd/2049
XENBUS: Device with no driver: device/vbd/2050
XENBUS: Device with no driver: device/vif/0
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "sda1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
The xen.conf for this particular VM:
Code:
# This points ta real Dom0 kernel!
kernel = "/boot/vmlinuz-2.6.18-53.1.13.el5xen"
memory = "256"
name = "Ubuntu-Matt"
vif = [ 'mac=00:01:02:03:04:07, bridge=xenbr0, vifname=vif1.0' ]
# Set the disk...
disk = ['file:/home/matt/vms/ubuntu-7.04/ubuntu.7-04.img,sda1,w', 'file://home/matt/vms/ubuntu-7.04/ubuntu.swap,sda2,w']
root = "/dev/sda1 ro"
This is driving me bonkers... Has anyone gotten these to work? Would I be better off just installing from an ISO?
I have uploaded my site through FTP. Everything seems to be showing except the /images files.
Images in .gif and .jpg ain't showing up. The error I get is
"The image "image URL" cannot be displaying, because it contains error"
It's weird because the image is uploaded on the ftp in images folder but for some weird reason it's not showing up.
how to have full size images in my DH (dreamhost) gallery2?
View 2 Replies View RelatedI plan to build huge image gallery, using lighttpd to server these images. It would be easiest for me to have all these files (more than 1 000 000) in one directory? Is it ok?
I have no idea, if this can cause any problems. Should I part my files into several directories, does it make serving better/faster?
Dose more images mean more RAM usage?
Do images take a heavy load on server RAM?
I have virtual folder in IIS6 which has asp file as default and several jpg files. How to prevent JPG files download from server? I want to let execute asp file only and do not let users download jpg files.
View 0 Replies View RelatedThe images I am trying to block are on page generated by a simple PHP script on my server. The offender has replicated what I am doing with ASP on their server. They are hotlinking to my images for the resulting page. They left my website's name on them, so they must think that giving credit is enough.
I'm going to be contacting them to stop but I also want to see if there is a way for me to prevent it from happening in the first place.
I tried mod_rewrite...
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^[url].*$ [NC]
RewriteRule .(gif|jpg)$ - [F]
I know mod_rewrite works on my server because I've been using it for some other things.
However, whenever I enable the above code (add it to the directives and restart apache - have also tried just putting it in a .htaccess file in the appropriate directory), I end up with images still being allowed on my domain and the other domain I'm trying to stop from using my images. Do you think it could have to do with an absent referrer? I read that the code doesn't work if the referrer is blank. What else would cause this not to work? Obviously the domain would have to be correct, but it doesn't block from my domain OR the offending domain.
I tried another method:
Code:
<FilesMatch ".(gif¦jpg¦png)$">
SetEnvIfNoCase Referer ^$ allow_image
SetEnvIfNoCase Referer ^[url] allow_image
Order Deny,Allow
Deny from all
Allow from env=allow_image
</FilesMatch>
This one blocked images to the offending domain, but it also blocked mine!
I am creating a web application, nothing spectacular just something to display content.
After completing a long night of coding, I uploaded my files to my server and checked to make sure everything was functioning correctly. Everything seemed fine so I went to bed.
The next morning, to my surprise, all my images had dissapeared! Well not all of them, just the ones being displayed through the PHP script. (coincidentally, these images where all in the same directory...)
Of course the first thought that went through my mind was "scripting error". Which surprised me, since everything worked perfectly the night before. I checked and double checked everything, and I couldn't find anything wrong. I checked the permissions on the directory holding the images and they appeared correct (755). So, to locate the problem I decided to strip out all the variables and create a test page that had only the SQL query, and a print to output the <img> code. Still nothing! So I decided to just go the HTML route and create a test file that held only the <img> code, no PHP involved... nothing.
The images are on the server. I double checked... if you right click > view image, it shows up. Then if you go back to the "test" page and refresh the image is there... however, it does not appear when you first load the page, or it appears and then immediately dissapears.
I contacted my host about the issue, and their first response said:
Quote:
Dear customer,
The images are there if you login through plesk control panel and go to
File Manager under your domain you can find the pictures and see
them.But some of them are not opening under your website.
Best Regards
Honestly... are you kidding me? Reiterating my question doesn't constitute as an answer. And they call themselves "engineers"...
Seeing as it appears to only be affecting one directory (and possibly only JPG images...? Have a look at the test pages above), I believe it might be a permissions issue.
I've got an application (java web ) tha dynamically creats images ( with dynamic url - ...tab&vi=nia&h=24&ds=bottom&fn...) - like thumbnails,icons ect.
The think I'm trying to deal with is to force caching theese images by a browser.
When the application starts the server gets images and shows code 200 ( and this images apppers in web browser cache), but after reloding or simply viewing the images from the cache url the server shows again code 200. I'd like to have code 304 - not modified - like when browser gets an image from cache.
The dynamic url for image is being created only once - when the appication starts, and after that it stays unchanged, but I still can't force use the cached images - like when it is a static url - .../image.jpg.
I need a medium of some kind to store my backup drive images of a windows 2003 standard x64 server. I will be taking DriveImage XML images every Sunday. The medium must have a minimum capacity of 250gb.
I am wondering what is the best/most cost efficient option? My budet is around $500.
I have heard tape and usb external drives.
Can you provide specific models, costs, pros/cons of each technology and product?
I'm using suphp to secure a shared web hosting server and am confused about one issue I'm having. It is my understanding that using suphp, you should be able to chmod 755 all directories and chmod 600 all files since apache runs the .php files as the user.
However, when I chmod 600 all files, the formatting of the sites gets messed up. It loses all css and if you try to view image files in the browser you get a permission denied error. Why is that?
As a temporary solution, I can chmod 644 all files and then 600 only sensitive files like config files (wp-config.php for WordPress for example), but I'd rather just chmod 600 everything.
Can anyone explain why 600 doesn't work?
With 644 permissions, any user could upload a script like:
Code:
<?php
$filename = realpath("/home/user/public_html/wp-config.php");
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
echo '<textarea name="textareaName" rows="46" cols="103">'.$contents.'</textarea>';
?>
and view another users's file if it is 644.
We have a major chunk of our traffic coming in from Asia and our servers are in the US. The latency is an issue which we have sorted out by ensuring we use Amazon's cloudfront CDN atleast for the static images.
Now while this is working rather well, we are now wanting to experiment and see if we could put up an additional image server in our country to serve IPs from that specific range.
In case the local image server goes down, the amazon cloudfront setup should be used. What are the best options for achieving this with the least amount of latency for the users?
I use 34SP to host my website, and the package which I use allows me 2000MB of traffic a month. If every image that I use on my website (including the logo and background image) is hosted on photobucket instead of by the 34SP server, does this mean that the data received from photobucket won't count against my monthly traffic allowance?
And is this a reliable way of doing things? I guess it's less reliable than having all the images on the same server, but how often is this likely to go wrong?
i have to reload a page several times. at least once. the templates show up fine, but the actual images and contents do not show up unless i reload the page....this is evident during peak hours but not during normal hours.....
i've done tracert, no lost packets.