Something like this would not work?
```ruby
if request.url.match(/.+.neighbor.ly/)
  # ...
```

Ah! *.herokuapp.com have HTTPS enabled.