I have the following working rules in my httpd.conf for redirecting http to https based on the URI:
### Redirect port 80 to port 443 (ssl) for secure content
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{REQUEST_URI} ^.*(password|phpmyadmin).*$ [NC]
RewriteRule ^.*$...
I have this code that parses smb.conf and puts a users shares/descriptions into a hash of the username:
open(CONFIG, "$smbconf") || die;
while (<CONFIG>) {
next unless m/^\[([a-zA-Z0-9]+)\]$/;
$ShareName = $1;
while (<CONFIG>) {
next unless m/^\s+comment \=...
I had a hacker deface my website a few weeks ago. I've since blocked his IP address range from accessing my site.
I'm was wondering if anyone has a mapping of IP addresses to countries so i can block everyone outside the US?
I've looked around google w/o any luck. Thanks,
Ok,
i'm new to programming in perl to interface with windows systems. All of my experience is with Unix systems. Here is my question:
Is there a module or method that can determine what the Windows login name is for a person who visits a webpage?
I'm trying to create a login page that...
I have a configuration file which contains many 'name = value' statements. This configuration file is used by several related cgi scripts.
I seem to be having an issue with a few lines in my config file being read into my perl script and then being written to by a system command. The file...
Hello,
I run a small website (www.autocross.us) that hosts mpg video content. How do i force a download prompt to appear instead of media player attempting to play the video when the left mouse button is clicked?
I've asked users to 'right-click' and 'save target as', but this is not...
Hello,
Does anyone have good reference for the various errors associated with the 'mailq' command output.
i.e:
(Deferred: Connection reset by.....)
I can't seem to locate anything useful on google and i need this for a script i'm working on. thanks,
-jim
Hi,
i applied the remote vunerability patch to one of my sendmail servers tonight and had a problem with the reboot hanging. I basically had to fsck the filesystem and restore my previous configuration before the patch. I now get this error related to Mimedefang every few seconds on the...
How can i capture the octal permission value of a file to a variable in perl?
example:
-rwxr--r-- 1 root other 38 Jan 31 12:43 test1
I need a variable that has a value of '744'
so i can use it later. Thanks,
jim
I have an array called @list with these elements:
31 BBB0094
31 BBB0096
20 BBB0094
31 AAA0091
31 AAA0093
10 AAA0091
10 BBB0091
20 AAA0091
20 AAA0092
I cannot figure out a perl way to sort the 1st column numerically while also...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.