Tagged: Drupal 7 Toggle Comment Threads | Keyboard Shortcuts

  • Elmer Masters 10:34 am on May 23, 2025 Permalink
    Tags: Awards, Drupal 7   

    Current website traffic is all about awards.

     
  • Elmer Masters 11:30 am on May 22, 2025 Permalink
    Tags: DDoS, Drupal 7, HAProxy,   

    Eliminating bad traffic targeting Drupal and Solr 

    a short post-mortem on eliminating all of that bad search traffic that was triggering multiple reds throughout the day.

    I put a number of vaguely regex filters in place on the load balancer and then redirect things to a Google search. We were seeing hits directly to Solr through Drupal on the order of hundreds per minute that put high loads on the entire web stack. Eventually this triggered failures. Since the URLs being used were easy to parse using only a few search terms repeatedly, building a rule to block them was easy. The bigger question was where to put the blockers. Ultimately blocking these attacks at the load balancer was the best idea.

    An additional concern was the possibility of snagging legit student searches in the filters. This is addressed by allowing for at least some of the search filters to remain in place. For example, a search for “commercial lease” still works as do the drill downs by content type. If an attempt is made to drill down by topic after the initial search for “commercial lease” the rule is engaged and access is redirected to a Google search page for “CALI Lessons commercial lease”. By using the redirect to a Google search we offer a return path for any unsuspecting visitor doing a legit search.

    Below are the lines added to the HAProxy configuration to enable the rules that block the bad actors from the site.


    acl match_query url_reg /search/site/commercial%20lease\?f%5B0%5D=im_field_cali_topics.*$
    http-request redirect location https://www.google.com/search?q=CALI+Lessons+commercial+lease if match_query
    acl match_query url_reg /search/site/bar%20prep\?f%5B0%5D=im_field_cali_topics.*$
    http-request redirect location https://www.google.com/search?q=CALI+Lessons+bar+prep if match_query
    acl match_query url_reg /search/site/later\?f%5B0%5D=im_field_cali_topics.*$
    http-request redirect location https://www.google.com if match_query
    acl match_query url_reg /search/site/commercial%20please\?f%5B0%5D=im_field_cali_topics.*$
    http-request redirect location https://www.google.com/search?q=CALI+Lessons+commercial+lease if match_query

     
  • Elmer Masters 3:27 pm on January 27, 2016 Permalink
    Tags: COD7, Drupal 7   

    Working on CALIcon16 site.

    • Adding Logintobbogan to get better user control.
    • Flow is Register -> email verification -> add to C16 OG -> send happy email that includes session proposal stuff.
    • Getting Rules to behave is kind of a drag.
     
  • Elmer Masters 11:20 pm on April 10, 2015 Permalink
    Tags: Drupal 7   

    Here’s before:

    Before the Front Page Feature makeover

    Before the Front Page Feature makeover


    and after:
    After the Front Page Feature makeover

    After the Front Page Feature makeover

     
  • Elmer Masters 11:13 pm on April 10, 2015 Permalink
    Tags: Drupal 7, , ,   

    Added a tweak to the LessonLink layout and approved for deployment next week.
    Here’s a pic of the new create page:
    The new LessonLink create form.

     
  • Elmer Masters 10:01 pm on April 10, 2015 Permalink
    Tags: Drupal 7, , ,   

    Finally on today’s list, a change to the layout of the Create LessonLink page to make the help text less annoying. No one likes to scroll to the bottom of the page all the time!

     
  • Elmer Masters 9:57 pm on April 10, 2015 Permalink
    Tags: Drupal 7   

    Approved the changes to the front page feature layout. Will deploy next week.

     
  • Elmer Masters 9:39 pm on April 10, 2015 Permalink
    Tags: Drupal 7, ,   

    Next up, a fix to sort out the less than pleasing layout of the front page feature space.

     
  • Elmer Masters 9:36 pm on April 10, 2015 Permalink
    Tags: Drupal 7, ,   

    Listing the Lesson you've run
    Works well, needs refinement to handle no runs in a topic and a link to My Lesson Runs.

     
  • Elmer Masters 9:18 pm on April 10, 2015 Permalink
    Tags: Drupal 7,   

    Reviewing code for http://www.cali.org. First up this afternoon is a feature that adds a list of Lessons run to the CALI Topic pages. It’ll provide an easy way for students to see what Lessons they’ve run in a given Topic.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
Secret Link