Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ben McKean 272 posts 549 karma points
    Jun 26, 2015 @ 09:39
    Ben McKean
    0

    Spam blocking using UrlRewriting

    Hi

    Is it possible to do spam blocking in UrlRewriting.config? I've done it previously in web.config which is fine and works but I'd like to develop something so that my client can update this in Umbraco and it update the UrlRewriting.config file.

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jun 26, 2015 @ 12:37
    Jan Skovgaard
    0

    Hi Ben

    I'm not sure I have the technical solution for you but I'm wondering if you have investigated whether or not the 301 url tracker package could be used for the purpose? https://our.umbraco.org/projects/developer-tools/301-url-tracker

    Sorry if I'm way of just wanted to suggest in case you were not aware about it already :)

    /Jan

  • Ben McKean 272 posts 549 karma points
    Jun 26, 2015 @ 12:47
    Ben McKean
    0

    Hi Jan,

    Thanks, I'll download it and see what it does.

    I could poetentially redirect requests from referrers to elsewhere, I've seen others do this like to redirect to google or something but I'd prefer to abort the request.

    This is similar to what I have in my web.config currently, the example below is blocking all requests from semalt

    <rewrite>
      <rules>
        <rule name="abort referer spam requests" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTP_REFERER}" pattern="(semalt\.com)|(buttons\-for\-website\.com)" />
          </conditions>
          <action type="AbortRequest" />
        </rule>
        <!--The rest of your rules, if you have any-->
      </rules>
    </rewrite>
    
Please Sign in or register to post replies

Write your reply to:

Draft