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.
...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 ^.*$ https://myhost.com%{REQUEST_URI} [L]
I can't get the inverse rule to work, which i want to use to...
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,
I assure you it's not for 'malicious activities'. I have a good standing on this forum.
My supervisor swears that this could be done and I told him that it probably cannot. I asked the question because i don't program ever to interface with M$ windows and was looking for some clarification...
Sorry, That doesn't work for me.
I should mention that the script runs on a Unix server with Apache as the webserver. I don't have the LOGNAM variable.
So far I'm able to determine the IP and hostname by using Unix utilities. I may need to pose this question in another forum to see if there...
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...
It seems the while statement didn't paste well into my post. I do have it that way though. ??
Thanks for the other suggestions, i'll implement them into the code. My main problem is that my $tempfile variable is
not working when being read in with the while loop code. The system call...
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.