Guest schossel Posted November 3, 2019 Report Share Posted November 3, 2019 Hi, I downloaded Notepad++ from https://notepad-plus-plus.org/ for a while now but they changed to a Cloudflare protection some days ago. I'm now no more able to load the page in Ketarin and I can't download anymore. Is there any possibility using a different referrer or any other method to usw Cloudflare protected sites? I can't find any useful other sites to download the file. Filehippo only has older versions. Thanks for the help! Link to comment Share on other sites More sharing options...
shawn Posted November 3, 2019 Report Share Posted November 3, 2019 With Cloudflare you're pretty well stuck unless you can find a consistent pattern for the download files since the downloads themselves are rarely behind Cloudflare. In this case there is a pattern so you're good. You can get the current version number from this using this pattern: >v([^'"]+)</ You can then construct the download URL by inserting the version numbers in these patterns: http://download.notepad-plus-plus.org/repository/{version:split:.:0}.x/{version}/npp.{version}.Installer.x64.exe http://download.notepad-plus-plus.org/repository/{version:split:.:0}.x/{version}/npp.{version}.Installer.exe The download URL does not support HTTPS, but will download once you've injected the version numbers (and major version number in the first field). Link to comment Share on other sites More sharing options...
schossel Posted November 4, 2019 Report Share Posted November 4, 2019 Thanks a lot! I tried something similar but it seems I wasn't able to pick the right download URL. Link to comment Share on other sites More sharing options...
shawn Posted November 12, 2019 Report Share Posted November 12, 2019 Here's a working template for the x86 version (the only one that reliably supports TextFX): <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="071dc699-15b5-4a76-8296-d1d9b91d2449"> <Category>Editors</Category> <WebsiteUrl>https://notepad-plus-plus.org/</WebsiteUrl> <UserAgent>wget</UserAgent> <UserNotes /> <LastFileSize>3982472</LastFileSize> <LastFileDate>2019-11-03T11:08:19.2683762</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate>2009-03-29T18:49:42</DownloadDate> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>version</VariableChangeIndicator> <HashVariable /> <HashType>None</HashType> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>>v([\d\.]+)<</Regex> <Url>https://img.shields.io/github/v/release/notepad-plus-plus/notepad-plus-plus.svg</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>sdownload</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://download.notepad-plus-plus.org/repository/{version:split:.:0}.x/{version}/npp.{version}.Installer.x64.exe</TextualContent> <Name>sdownload</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2019-11-03T11:08:19.2683762</LastUpdated> <TargetPath>..\{category}\{appname:regexreplace:([\s\t\r\n\-\&]+):_}-{version}.{url:ext}</TargetPath> <FixedDownloadUrl>{sdownload}</FixedDownloadUrl> <Name>Notepad++ (x86)</Name> </ApplicationJob> </Jobs> Link to comment Share on other sites More sharing options...
shawn Posted December 19, 2019 Report Share Posted December 19, 2019 They changed their downloads to use AWS via Github now. Download pattern is now: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v{version}/npp.{version}.Installer.exe https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v{version}/npp.{version}.Installer.x64.exe 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