ebola
Guest
|
 |
« on: December 17, 2008, 03:14:03 PM » |
|
Hi
How would a macro look like that disconnects a User-Agent with name "xyz" imediatelly ?
Thx, ebola
|
|
|
|
|
Logged
|
|
|
|
|
JellyFrog
|
 |
« Reply #1 on: December 28, 2008, 10:45:35 AM » |
|
Something like this should work (untested):
{.if|{.header|User-Agent.}=xyz|{.disconnect.}|Aww you are free to go.}
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11830
|
 |
« Reply #2 on: December 28, 2008, 10:49:31 AM » |
|
very close jellyfrog ALT+F6 and enter [request] {.if|{.{.header|User-Agent.}=xyz.}|{.disconnect.}.} untested as well 
|
|
|
|
|
Logged
|
|
|
|
|
JellyFrog
|
 |
« Reply #3 on: December 28, 2008, 10:57:42 AM » |
|
very close jellyfrog ALT+F6 and enter [request] {.if|{.{.header|User-Agent.}=xyz.}|{.disconnect.}.} untested as well  [request] {.if|{.{.header|User-Agent.}=xyz.}|{.disconnect.}.} in hfs.events disconnects me  Your User Agent is: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 HFS 2.3 beta (217) Hm.. is it possible it just listen to:{.header|User-Agent.}? and skip the =xyz? so it looks like this: {.if|{.header|User-Agent.}|do something.} That should return true? Just a thought 
|
|
|
|
|
Logged
|
|
|
|
ebola
Guest
|
 |
« Reply #4 on: December 28, 2008, 11:16:36 AM » |
|
Hi
Thx for your answers.
Sadly this solution disconnects EVERY User-Agent - not only the one I specific. This is realy weird....
Cheers, ebola
|
|
|
|
|
Logged
|
|
|
|
|
JellyFrog
|
 |
« Reply #5 on: December 28, 2008, 11:18:03 AM » |
|
Hi
Thx for your answers.
Sadly this solution disconnects EVERY User-Agent - not only the one I specific. This is realy weird....
Cheers, ebola
Yes it does, like I said... I guess rejetto is looking at this right now 
|
|
|
|
|
Logged
|
|
|
|
|
rejetto forum
|
 |
« Reply #5 on: December 28, 2008, 11:18:03 AM » |
|
Do you like this software?
Consider even $2
|
|
|
|
|
Logged
|
|
|
|
|
JellyFrog
|
 |
« Reply #6 on: December 28, 2008, 11:29:03 AM » |
|
Oh..found it! In hfs.events (alt+F6):
[request] {.if|{.{.header|User-Agent.}=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5.}|{:{.disconnect.}:}.}
Disconnect all browsers with "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" as user-agent
Disconnect all browsers with "xyz" as user-agent: [request] {.if|{.{.header|User-Agent.}=xyz.}|{:{.disconnect.}:}.}
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11830
|
 |
« Reply #7 on: December 28, 2008, 01:03:24 PM » |
|
yes, {: :} were missing
|
|
|
|
|
Logged
|
|
|
|
ebola
Guest
|
 |
« Reply #8 on: December 28, 2008, 03:03:04 PM » |
|
Thank you so much @JellyFrog  Working like a charm. Thank you for this software @rejetto, too. good n8, ebola
|
|
|
|
|
Logged
|
|
|
|
|
JellyFrog
|
 |
« Reply #9 on: December 28, 2008, 03:08:56 PM » |
|
Thank you so much @JellyFrog  Working like a charm. Thank you for this software @rejetto, too. good n8, ebola No problem 
|
|
|
|
|
Logged
|
|
|
|
|
CR1T1C4L
|
 |
« Reply #10 on: January 11, 2009, 10:17:50 PM » |
|
what would this be used for?? may I ask
|
|
|
|
|
Logged
|
|
|
|
|
maverick
|
 |
« Reply #11 on: January 11, 2009, 11:13:58 PM » |
|
what would this be used for?? may I ask
Read this thread. It should answer your question on what can be done with HFS event scripts. -> http://www.rejetto.com/forum/?topic=6154In the example above in this thread, they are using a HFS event script to disconnect anybody coming to their site with the firefox browser. Different script could also be used to show a different web page depending on the browser being used. etc. User agent identifies your browser. What's your user agent -> http://whatsmyuseragent.com/
|
|
|
|
« Last Edit: January 11, 2009, 11:18:40 PM by maverick »
|
Logged
|
maverick
|
|
|
|
securityguard123
|
 |
« Reply #12 on: January 12, 2009, 09:19:39 AM » |
|
Hi guys!
I am looking for HTML code forums... lurking around and absorbing everything I can see and understand...
This one is tough and sure very nice if I'll understand it hehehe!
|
|
|
|
|
Logged
|
|
|
|
|
Anykeev
|
 |
« Reply #13 on: January 22, 2010, 07:59:28 AM » |
|
[request] {.if|{.{.header|User-Agent.}=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5.}|{:{.disconnect.}:}.}
Disconnect all browsers with "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" as user-agent It is possible to block certain keywords? For example, block "en-US" only? PS sorry for my english, translated by google
|
|
|
|
|
Logged
|
|
|
|
|
Roessi
|
 |
« Reply #14 on: January 22, 2010, 09:45:31 AM » |
|
err sth like this ?
{.if|{.pos|en-Us|{.header|User-Agent.}.}|{:{.disconnect.}:}.}
|
|
|
|
« Last Edit: January 22, 2010, 10:58:54 AM by rejetto, Reason: {:added braces:} »
|
Logged
|
|
|
|
|
Anykeev
|
 |
« Reply #15 on: January 22, 2010, 12:11:02 PM » |
|
Thank you Roessi, it's work 
|
|
|
|
|
Logged
|
|
|
|
|