Thanks for the reply.
I can't seem to find any good documentation on the use of "!" w/ mod_rewrite, but i thought it was correct from what i've seen in other examples. I'll look into this more closely though. The [^ ] works for negative character classes, but it doesn't work in this situation.
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 \=...
This one handles whatever number of numbers occur after the decimal:
$amtr1 = "3,750.94545645";
$amtr1 = preg_replace('/([\d,]+.\d{2})\d+/', '$1', $amtr1);
print "$amtr1";
Do you have more than one network interface?
What is the output of the 'show-nets' command from the ok prompt?
If you have multiple interfaces, try selecting each interface from the show-nets output and then running your boot command again.
Thanks for the link.
I understand proxies and that hackers exist in the US. I'm trying to eliminate the larger threat and make it not worth their time to bother with me.
I can prosecute someone in the US much easier than say Russia or Turkey too. Cheers,
This isn't accomplished very easily with the shell. I researched this issue some time ago and decided to use perl with the date::calc module.
Here is a reference i found for a ksh method in my research though:
http://www.itworld.com/Comp/2378/swol-0299-unix101/pfindex.html
Good Luck,
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,
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.