Lakai[NL] Posted April 6, 2005 Share Posted April 6, 2005 Im writing a program for a friend, and I'm doing protection for his site, this is the protection code, so if his site gets entered in the url a popupbox will popup, and it will then close the script: If $var1 = "http://infantryzone.net/forums/..." Or "http://www.infantryzone.net/forums/..." Then MsgBox(0, "Site Protection", "This site is protected: ", $var1) Exit EndIf If another site is put in there, it should run, however even if a diff site is entered in, the popup still comes, please help. Thanks Lakai. Link to comment Share on other sites More sharing options...
Ejoc Posted April 6, 2005 Share Posted April 6, 2005 I have no idea what you want it to do. You are protecting him from accessing his own site? Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
zcoacoaz Posted April 6, 2005 Share Posted April 6, 2005 i don't understand your logic, your saying If this variable = "http://infantryzone.net/forums/..." Or it is true that "http://www.infantryzone.net/forums/..." is a string then do this [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
Lakai[NL] Posted April 7, 2005 Author Share Posted April 7, 2005 (edited) that if someone types his link into that box, that popup box will popup, and if its another site like www.google.com that is typed, it will go to that website. Edited April 7, 2005 by Lakai[NL] Link to comment Share on other sites More sharing options...
Ejoc Posted April 7, 2005 Share Posted April 7, 2005 that if someone types his link into that box, that popup box will popup, and if its another site like www.google.com that is typed, it will go to that website.<{POST_SNAPBACK}>Why would I download this script, install this script, and then use it to access websites knowing it will block 1 web site... Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
zcoacoaz Posted April 7, 2005 Share Posted April 7, 2005 let me word what i said differently Your script is saying If $var1 = "http://infantryzone.net/forums/..." Or It is true that "http://www.infantry.zone.net/forums/..." is a string Then blah, blah, blah i don't understand how you expect that to ever return false... [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now