Jump to content
Ketarin forum

Notepad++ Cloudflare protected. Download still possible?


Guest schossel
 Share

Recommended Posts

Guest schossel

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

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

  • 2 weeks later...

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>&gt;v([\d\.]+)&lt;</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\-\&amp;]+):_}-{version}.{url:ext}</TargetPath>
    <FixedDownloadUrl>{sdownload}</FixedDownloadUrl>
    <Name>Notepad++ (x86)</Name>
  </ApplicationJob>
</Jobs>

 

Link to comment
Share on other sites

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.