Post Reply 
Simtel.net problem yet again!
May. 02, 2005, 03:02 AM
Post: #1
 
Last July the code I was using to get me around the redirects in Simtel.net downloads had stopped working. So I started a thread here (http://prxbx.com/forums/index.php?showto...mtel\.net#) seeking help on how to remedy this. Sidki graciously posted a reply with a code fix that worked beautifully until recently. Here is Sidki's code which I have been using:


[Patterns]
Name = "Bypass redirects in links (COMPLEX)"
Active = TRUE
Bounds = "<a(rea|)\s*[^\-]>"
Limit = 256
Match = "(*(href|onclick))\1="(?[^ ]++)\2(http|https|ftp)\3(No Expression%3a)(/|%2f)+{2}([^&'"\[]+)\4\5"
Replace = "<a href="\3://$UESC(\4)" class=proxlink>[Direct][/url]\1="\2\3://\4\5"


Unfortunately, it looks as though Simtel.net has changed so that this code now gets stymied. When the page with a list of servers to choose from comes up, the "[Direct]" link no longer appears. When I click on a link to a server, it tells me that the server is being contacted and the download will start shortly, but it doesn't. It just stops there. To prevent this I must desable "Filter Web Pages" in Proxo.

Once again I am asking for help here so that "[Direct]" will be back and I will not have to disable Proxo in any way in order to d/l files in Simtel.net.

Again, many thanks and much gratitude to anyone who can help me with this problem.

Sam the Cat
Add Thank You Quote this message in a reply
May. 02, 2005, 03:56 AM
Post: #2
 
Here you go Eyes Closed Smile

Code:
[Patterns]
Name = "Simtel Mirror Direct Download"
Active = TRUE
URL = "(www.|)simtel.net/product.download.mirrors.php\?id="
Limit = 512
Match = "<a href=\"javascript:void\(0\)\"\sonClick=\"downloadFileDirectWithMirrorSite\(\'*\', \'*\', \'*\', \'\1', \'*\'\); return false;\">*</a> "
Replace = "<a href="\1">[Direct]</a><br>\1"

This should work. Import it so that it's at the top of the list of web filters, so it filters the links before other filters do.

Enjoy! Smile!

Note: It's a bit rougher than Sidki's, but it gets the job done =) Perhaps Sidki could post an update to his, which I think is better written.
Visit this user's website
Add Thank You Quote this message in a reply
May. 02, 2005, 09:27 AM
Post: #3
 
Wasn't my code, i just fixed it. Smile!

Sam the Cat, the changes at Simtelnet are too much for your general filter. So you can either use Kye-U's site-specific filter, or add a "JS Links to normal Links" filter to your config:
Code:
[Patterns]
Name = "<a>: JS Links to normal Links - Stand-Alone [rcl sd]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)|$TYPE(js)"
Bounds = "<a\s*(<(\\|)/a >|>(^(^ <(a\s|((\\|)/|)center))))"
Limit = 2048
Match = "*\s(onclick=|href=(\\"|"|)javascript:)"
"&"
"<a*\s(href|onclic(k)\1)=(((\\|)")\0|(^"))"
"(javascript:|$TST(\1=*))(^*function \(|var|[a-z0-9_.]++.value)"
"(*&&*(\\"|"|%22|\")\8([^"'=;/]+/[^"';.]+.[^"']++)\9$TST(\8)*)"
"($TST(\0)*|(\s|>)(^$TST(\0=*))*)\2"
""
"&("
"$TST(\1=*)(^*href=$AVQ((\\"|"|) (\+|javascript:(^//| nothing \( \) | void (\( |)(0|null))|*.)*))*"
"|(^$TST(\1=*))"
")"
Replace = "<a id=\0proxJS\0 href=\0\9\2"

Notes: Naoko 4.5 only. Some precautions removed to get it stand-alone, may need to be bypassed at times. Please do not merge this version with my set.

sidki
Add Thank You Quote this message in a reply
May. 04, 2005, 08:53 AM
Post: #4
 
Hello, Kye-U and sidki3003 --

Thank you both so much for such quick replies. I tried your fixes and they both work beautifully. Let's hope simtel.net doesn't go changing things again, at least for a while.

Again, my thanks to both of you. This is an excellent forum which is of great help to ordinary Proxo users like me. I appreciate it very much.

Take care.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: