Pervent Users To Something In .htaccess
Apr 27, 2009I dont like users can run following code him .htaccess. How can do it?
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
Options +FollowSymLinks
Options +FollowSymLinks
I dont like users can run following code him .htaccess. How can do it?
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
Options +FollowSymLinks
Options +FollowSymLinks
I'm going to be doing some upgrades on my site and I want to redirect all users to a different page while I do the upgrades but I need to allow my self too have access.
I have done this before with a htaccess rule, but I can't remember what it was and can't seem to find it anywhere.
I dont want my customers to change php_value by using .htaccess, but still want to enable mod_rewrite for them. How to config?
View 2 Replies View RelatedI use cpanel license, i enable phpsux on my server, but user can send email without smtp address.
how can pervent user for send mail without smtp?
How can pervent users ro run scripts start with #!/usr/bin/perl in anywhere.
Its a big security issue for run shell.
The upgrade has an error when manage the users database.
PRODUCT, VERSION, VERSION OF MICROUPDATE, OPERATING SYSTEM, ARCHITECTURE
OS Microsoft Windows Server 2008 R2 Service Pack 1 x64
Panel version 11.5.30 Update #13, last updated at Sept 1, 2013 03:30 PM
PROBLEM DESCRIPTION
In a costumer panel have a one database MSSQL, and assign to this DB 3 users, but the tab option "Users" don't work fot his costumer and show this error:
Error Javascript:
TypeError: template is null
this.template = template.toString(); in protototype.js 8472831 (lÃÂnea 807)
ACTUAL RESULT
Error Javascript:
TypeError: template is null
this.template = template.toString(); in protototype.js 8472831 (lÃÂnea 807)
EXPECTED RESULT
Show users in the tab users for database.
On my server, users can connect to any database as long as they have the database user and password. This makes it easier to hack any database on the server.
What I want to do is to make the users can only connect to their own databases and not other's.
I tried changing the localhost ip address but it didn't work ( I assume I didn't do it the right way)
im on a vps and enabled ssh to other accounts but how do i know whats the loginid n password for it?
View 5 Replies View RelatedI am using a script, on which i want to enable friendly URL, below are the instructions.
Friendly URLs Settings
Apache Settings
(please add the following lines to your
.htaccess file to turn on friendly URLs)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /hcl/friendly_url.php [L]
</IfModule>
But, issue is, i am using IIS on Windows Server.
How can i implement this?
I want a rule in .htaccess that will convert all .com addresses into .co.uk ones as I have a .com mapped to the .co.uk address for the site.
View 7 Replies View RelatedI have a vds with godaddy. I uploaded my site and then uploaded .htaccess (AddHandler server-parsed .html) Then when I go to my site in browser I get this error.
Safari can’t open the page “mydomain”. The error was: “lost network connection” (NSURLErrorDomain:-1005) Please choose Report Bug to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.
The thing is, I did the exact same thing on another domain with the same htaccess file and everything works fine. SSI is enabled on both.
I'm currently having a problem with a site of mine. The problem is that trying to go to domain.com/subdirectory/ (with or without the trailing slash) gets a 404 error (even though the directory exists).
However, domain.com/subdirectory/file.php works fine.
When trying to figure out what is causing this, I remembered that someone who recently did some work on this site had to add something to the .htaccess file. Here's what they added:
RewriteCond $1 !.(php|ico|gif|jpg|png|css|js|htm|html|txt|zip|pdf)$
RewriteCond $1 !^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [L]
I haven't done much with .htaccess, so I really have little idea what any of the above means or does (although I know it does something important).
So I guess my question is, could this bit of code be causing my problem? And, if so, how can it be corrected without messing up what this code was put there for in the first place?
My application is on Windows plateform and using IIS as webserver.
Can I use .htaccess to secure my directory...
Code:
RewriteCond %{QUERY_STRING} ^showtopic=([^&]+)&st=0$ RewriteRule ^forum/index.php$ [url]
I get a 500 Internal Server Error when I put that in my .htaccess file. Got it from [url]
htaccess file that will redirect all requests for the domain to --
https://www.
so what I want is all traffic to be secure and use the 'www'.
If I do rm -f *.* I see that .htaccess is not deleted
If I do copy -f *.* /somedir .htaccess is not copied.
Why?
What should I do to represent all files including .htaccess?
i have a mobile download site.. now i dont want users to directly download from my site.. i mean hotlinking..
I hav a referal thing in my .htaccess
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
Now there is a flashget like software for mobiles.. i want that my users are able to download using that software but the prob is that soft doesnt sends any referal info.. so in my .htaccess i want to allow that software and i am trying this
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^.*FGet 1.0.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteRule .*.(zip|avi)$ - [F,NC]
where FGet 1.0 is the HTTP_USER_AGENT send by the software, but this doesnt works.. can plz give me the right code for it
I'm have a bit of a mare getting some htaccess to work.
Here's my code:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-F
RewriteRule ^([-_!*$@~:.a-zA-Z0-9]+)$ [url]
The above works on a CPanel server but i've just moved the site to a fedora core 6, with standard httpd no control panel.
This is an entry from my log files:
PHP Code:
X.X.X.X [28/Sep/2007:11:51:34 +0100] "GET /my_profile.php?username=my_profile.php HTTP/1.1" 302 349 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"
For some reason it appends the my_profile.php to the end of the url, and it does it to any file in the same directory and just keeps going around in a loop, why would it do this?
I have a few system administrators having full access to the Windows 2003 servers. I fear some of them might be messing up with the server like opening websites on the server or downloading files on the server. I want to create unprivileged users to login to the server so that they can do the basic tasks like reading the log files etc. Can anybody give me the steps for the same?
View 0 Replies View RelatedI've searched around these forums (VPS specifically) and cannot find any recent "reviews" or opinions on HostDime's VPS offerings.
Anyone using them? They seem to have the most bang/buck and I'd like to get a more recent review opinion on them.
we have a WHM account... we have different accounts on that...and for each account, there are add-on domains underneath that. (i hope you know what i mean)
and we set it up to use only SFTP to connect to server. no FTP.
after we have set it up that way, it seems that we can only connect to SFTP using 1 user/pass for each account... that is the same user/pass we use for Cpanel of each account.
say, i have Account A... under Account A, i have addon domains: A1.com, A2.com, A3.com...
setting SFTP only on that server, all those addon domains of Account A, can only use 1 user/pass to login to SFTP which is the cpanel access also of Account A.
question is.... is this behavior correct??
how can we create a different user for each add-on domain?
How can see mysql users and how can change password for a user.
For example www_user (mysql user) in shell access?
with webmin can I use it to add FTP users to say pure ftpd? and does it work with lighttpd? If I'm thinking about it right webmin just allows us to control the service and modify the configuration files right?
View 1 Replies View RelatedI hope this is in the correct section. Secondly, here is my issue that I am hoping someone can help with. I run a fairly successful video streaming site with several thousand members, and several thousand videos. I am trying to determine how many users I have online at any given time. Does anyone know of a piece of software/code out there that can provide me with this information in real time?
View 4 Replies View RelatedI am a server admin.
Recently, when I set up new user account, there's something strange in FTP.. ( Please check the image for detail )
Besides, all the new set up subdomain cannot use (no matter new or old user) and 404 error occur.
Does anyone have an experience with this host? In my search I found several favorable comments. I've been collecting different hosts names to consider from those of you kind enough to post them on your signatures. I'm with A Small Orange and am looking for a backup host, or will change the DNS to the backup if they are better.
Others I am considering are Aspire and Known Host. I'll need a shared plan. My site is anywhere from 350 to 450MB's. I try to get twice the space I need because I can have a spike here and there since clients are always downloading my voice files for their projects.
Does LiteSpeed webserver provides me bandwidth usage?
Someone told me that he was using 8 mbits connection and after jumping to LiteSpeed, bandwidth usage has decreased to 3 mbits.
I will generally have around 1-70 people browsing my forums at one time. I would like to know if 128mb of ram would be good enough for average performance?
View 8 Replies View RelatedI have installed LP on my system, but I have one problem...
The sites main apache runs well, but I can't get the users apache to start.
The two should be run from different ports?
My user said he can not view his site from his IP address. His friend from the same ISP also canot access the site.
But i can access from my ISP. So I think probably his IP address has been baned. Therefore, how can I check that? and how can i make his IP range available back?
Does anybody have a working Blurstorm number? I've tried 850-445-6937 which I found on the internet, but no answer.
Long story short. Signed up to host my website. Credit card charged and approved, but I never received a user name/password confirmation. I'm not able to log on to anything. It has been 4 months and they charge my cc every month which I dispute with the cc company. I can't cancel the web account. My next step is to cancel my credit card.
I have emailed 4 times, left messages at the above number, talked with the chat line. No response. This company is a scam.
Number one rule in chosing a host company, always make sure they have a working customer service number (call it and talk with someone).